Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions seedRandom on time remap

  • seedRandom on time remap

    Posted by Samuli Alapuranen on October 3, 2016 at 8:55 am

    I’m trying to randomize the time remapping of a 10 frames long layer with the following expression. The result of the expression is *always* 10 instead of random number between 0 and 9. What am I missing here?
    seedRandom(index,true);
    random(0,9);

    I tested changing the random numbers and the following expression seems to give me the result I’m looking for, however I have no idea why:
    seedRandom(index,true);
    random(0,0.5);

    Dan Ebberts replied 9 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 3, 2016 at 4:56 pm

    Time remapping expects a value in seconds, not frames. So this should work:

    seedRandom(index,true);
    framesToTime(Math.floor(random(10)));

    Dan

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