Skip to main content
September 25, 2012
Question

Expression with delay

  • September 25, 2012
  • 1 reply
  • 55112 views

Hi,

I'm a nooby when it comes to expression, so can anyone please help me with how I can create a certain expression?

I think it's quite simple. I've got 2 layers. One layer has an animation (leader) and the other one needs to follow. Only with a delay of 1 frame. The animations happens on "position", "scale" and "rotation".

Thanks you very much in advance!

Best regards,

John

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
September 25, 2012

These should work:

thisComp.layer("leader").transform.position.valueAtTime(time-thisComp.frameDuration)

thisComp.layer("leader").transform.scale.valueAtTime(time-thisComp.frameDuration)

thisComp.layer("leader").transform.rotation.valueAtTime(time-thisComp.frameDuration)

Dan

September 25, 2012

Hi Dan!

this really helps! Thank you so much.

Only one more question, because how can I change the number of frames it delays on this expression?

Best regards,

John

Dan Ebberts
Community Expert
Community Expert
September 25, 2012

This should work:

delayFrames = 3;

delay = framesToTime(delayFrames);

thisComp.layer("leader").transform.position.valueAtTime(time-delay)

Dan