Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Copy parent’s animation with a random delay

  • Copy parent’s animation with a random delay

    Posted by Thomas Murray on January 13, 2020 at 5:49 pm

    I’m trying to set up an animation that will have scale in many layers all at slightly different times.

    A single layer has the actual keyframes, and the rest of the layers will copy the master layer’s animation but with a slight random delay.

    My layers have this expression:
    randomNumber = random(1,10)

    delay = framesToTime(randomNumber);

    thisComp.layer("master").transform.scale.valueAtTime(time-delay)

    But my random function is firing on every frame, creating an unintended jittery glitchy effect. How can I rewrite this so it will use a single random number for all frames?

    Thomas Murray replied 6 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 13, 2020 at 6:56 pm

    Just add this as the first line in your expression:

    seedRandom(index,true);

    Dan

  • Thomas Murray

    January 13, 2020 at 7:04 pm

    thanks, ur awesome

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