Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions random number stable in time

  • random number stable in time

    Posted by Taha Boukhari on June 28, 2013 at 1:34 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 .

    Dan Ebberts replied 13 years, 1 month ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    June 28, 2013 at 4:14 am

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

    seedRandom(index,true);
    random()

    Dan

  • Taha Boukhari

    June 28, 2013 at 10:30 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

  • Dan Ebberts

    June 29, 2013 at 12:05 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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy