Skip navigation
SolidPP
Currently Being Moderated

Expression with delay

Sep 25, 2012 2:42 AM

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

 
Replies
  • Currently Being Moderated
    Sep 25, 2012 5:34 AM   in reply to SolidPP

    These should work:

     

     

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

     

     

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

     

     

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

     

     

    Dan

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 25, 2012 6:18 AM   in reply to SolidPP

    This should work:

     

    delayFrames = 3;

    delay = framesToTime(delayFrames);

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

     

     

    Dan

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 1, 2012 7:29 AM   in reply to SolidPP

    These kinds of delays can also be done easily with mamoworld's iExpressions for After Effects.

    This requires no code writing at all:

     

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points