Activity › Forums › Adobe After Effects Expressions › gaussRandom question
-
gaussRandom question
Posted by Jonas Espinoza on September 30, 2008 at 8:53 pmso with random generators, like random, gaussRandom
is there a way to alter the speed of this?
Dan Ebberts replied 17 years, 7 months ago 2 Members · 3 Replies -
3 Replies
-
Dan Ebberts
September 30, 2008 at 9:47 pmYou can use poseterizeTime() to set a frame rate, or you can use seedRandom(seed,true) where “seed” is a variable you change whenever you want the value to change. This example will change once a second:
seed = Math.floor(time);
seedRandom(seed,true);
gaussRandom(100);Dan
-
Jonas Espinoza
September 30, 2008 at 10:30 pmthanks again dan!
however, I have a few followup questionswont changing seed just make it pop to another value every second?
is there any type of noise, kind of like a wiggle that evolves more than pops to another value for more organic movement? i guess im just into learning about what i can do with noise, since ive found noise to be super useful in C4D xpresso setups
and what exactly does the math.floor element do?
btw – am working my way through “learning processing’ its really helped me understand some more about how java works an an environment where i can see what i’m doing, but still reliant on code. good stuff
-
Dan Ebberts
October 1, 2008 at 12:45 amYes. If you want a smooth evolution, you’ll want to use wiggle() or noise().
Math.floor() just rounds down to the nearest whole number.
Dan
Reply to this Discussion! Login or Sign Up