Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Deriving one position keyframe’s value from another

  • Deriving one position keyframe’s value from another

    Posted by Israel Unger on November 20, 2014 at 8:33 pm

    Hello AE expression community.
    Boy, I hope someone can help me with this, because I can’t find the answer to this anywhere. At any rate, here’s what I’m trying to do – I have a layer with various position keyframes throughout. One of those keyframes, however, needs to derive its value from the preceding keyframe. In other words, I need to be able to edit the position value of, lets call it keyframe 3, and have that automatically become the value of keyframe 4.
    Does ANYONE out there know of a way? Please, please, please – I’m up against a serious wall.
    I really appreciate all help. Thanks guys

    Israel Unger replied 11 years, 5 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 20, 2014 at 9:42 pm

    What you’re asking is not straightforward or simple. If your keyframes are linear, it might look something like this:


    if (time < key(3).time)
    value
    else if (time < key(4).time)
    key(3).value
    else if (time < key(5).time)
    linear(time,key(4).time,key(5).time,key(3).value,key(5).value)
    else
    value

    Otherwise (keyframes not linear) it gets more complicated in a hurry.

    Dan

  • Israel Unger

    November 21, 2014 at 2:04 am

    Hi Dan,
    thank you so much for getting back to me. Luckily the keyframes were fine as linear, so that totally did the trick.

    PS – I’m a complete noob with expressions, but I’m trying like crazy to learn them. Your website has been absolutely invaluable, so having you answer my question here on CreativeCow is a real honor. You da man (as we used to say in the 90’s).

    Thanks again

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