Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Keyframes offset and duration expression

  • Filip Vandueren

    July 4, 2023 at 1:42 pm

    Do you want to actually move the keyframes with a script, or have the dynamic result of it, using an expression ?

  • Otávio Nascimento

    July 4, 2023 at 1:48 pm

    Just the result with an expression

  • Dan Ebberts

    July 4, 2023 at 2:44 pm

    Something like this should work:

    L = thisComp.layer(index-1);
    t1 = L.inPoint;
    t2 = L.outPoint;
    t = linear(time,t1,t2,key(1).time,key(2).time);
    valueAtTime(t)
  • Otávio Nascimento

    July 4, 2023 at 3:10 pm

    That worked perfectly!

    Is it possible to change the keyframe value with an slider?

  • Dan Ebberts

    July 4, 2023 at 4:51 pm

    It’s easy with linear keyframes, but it can get tricky if you have custom easing that has to be preserved. Depends on what you’re doing, exactly.

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