Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Time referencing

  • Posted by David Michael on March 2, 2009 at 7:44 am

    I’m wondering if anyone knows if it is possible to cite variable values from the past. Specifically, if the position of one layer is pick-whipped to the position of another layer (which is always changing), how could I say: position[0] + (position[0]’s value from one frame back’). Assuming position[0] is changing every frame. Thanks for your advice!

    David Michael replied 17 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Filip Vandueren

    March 2, 2009 at 8:53 am

    Hi David,

    for properties of layers you can simply use valueAtTime(time),

    so in your example:

    position[0] + position.valueAtTime(time-thisComp.frameDuration)[0];

  • David Michael

    March 4, 2009 at 12:48 am

    Hey thanks for that! Exactly what I needed.

    One more thing, if I have linear movement from point 0,240 at second 0 and I want a motion path to travel to 720,y at second 10 where y is a random point between 0 and 480, how could I set that up?

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