Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Random point in loop

  • Random point in loop

    Posted by Sam Pipes on September 24, 2009 at 4:39 pm

    I have a 20-second loop of various images appearing in sqquence. I want to use this same loop for a bunch of different security monitors. How do I use Time Remap to make it so that each iteration plays at a different point in the loop?

    Dan Ebberts
    replied 16 years, 7 months ago
    2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    September 24, 2009 at 5:20 pm

    Try this time remapping expression:

    loopLength = 20;
    seedRandom(index,true);
    preRun = random(loopLength);
    (time + preRun)%loopLength

    Dan

  • Sam Pipes

    September 24, 2009 at 8:08 pm

    That works grewat! One thing, though: are there any other options for the random seed? I keep getting three or four TVs showing the same image.

  • Dan Ebberts

    September 24, 2009 at 8:15 pm

    Just change the first parameter until you get something you like:

    seedRandom(101,true);

    Dan

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