ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Copy parent's animation with a random delay

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
thomas murray
Copy parent's animation with a random delay
on Jan 13, 2020 at 5:49:10 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?


Return to posts index

Dan Ebberts
Re: Copy parent's animation with a random delay
on Jan 13, 2020 at 6:56:50 pm

Just add this as the first line in your expression:

seedRandom(index,true);


Dan



Return to posts index

thomas murray
Re: Copy parent's animation with a random delay
on Jan 13, 2020 at 7:04:37 pm

thanks, ur awesome


Return to posts index

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