PDA

View Full Version : Question: Random Expression


slayerment
05-30-2004, 01:33 AM
Is it possible to have the random function execute maybe once every 5 frames instead of once every frame?

For example, if I had the expression "random(30,60)" and on frame 1 the value would randomly be 40 and then at frame 5 it would randomly get the value 55. Is there a way to interpolate the values in between 40 and 55 while going through frames 1-5? Because right now AE spits out a random number every frame and it makes for a very fast movement that I am not looking for right now. I still want the motion dynamic, but I want it to go slower and flow smoother. I hope this makes sense. Thanks!

arvid
05-30-2004, 02:13 AM
You could try using the wiggle() function instead of random(), it works like perlin noise, so it doesn't act nearly as jittery. You could easily get the motion of something like a bug flying around for example, completely random, but without the jumping around

slayerment
05-31-2004, 01:59 AM
Thanks for the reply. The wiggle() function did give me a more desireable effect. Much appreciated :).

CGTalk Moderation
01-18-2006, 09:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.