FORUMS: list search recent posts

random number stable in time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
taha boukhari
random number stable in time
on Jun 28, 2013 at 1:34:16 am

hi
im searching an expression that can help me to give to parameters a random value ( i want a value betwen to numebers for parameters to be stable in time) not like random () expression because it s change in time and i want a stable one when the i play my comp .


Return to posts index

Dan Ebberts
Re: random number stable in time
on Jun 28, 2013 at 4:14:40 am

Just precede your random() with seedRandom() with the timeless parameter set to true like this:

seedRandom(index,true);
random()

Dan



Return to posts index

taha boukhari
Re: random number stable in time
on Jun 28, 2013 at 10:30:28 pm

Thank you some much ,you save me
but can you give me explanation a bout the seedrandom and true and index trick that you have than.
because i now what's mean all what you have than but i dont now whats the combination betwen them mean


Return to posts index


Dan Ebberts
Re: random number stable in time
on Jun 29, 2013 at 12:05:17 am

When you set the seedRandom() timeless parameter to true, random() will generate the same random numbers at each frame. I use index as the seed mostly out of habit because it's a seed that's unique for each layer. You could actually stick any number in there. Changing the seed changes the results you get.


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]