Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Path interpolation limitation?

  • Path interpolation limitation?

    Posted by Yoan Boisjoli on July 22, 2025 at 1:38 pm

    So here’s my set up:

    I have 4 keyframes on a path. my goal is to interpolate from keyframe 1 to 4 (I don’t care about keyframe 2 and 3) but instead of animating all the vertices at once, it animates them by using keyframe 2 and 3’s values.

    Is there a way to really going from keyframe 1’s value to keyframe 4’s value and ignore the other keyframes?

    Yoan Boisjoli replied 9 months, 2 weeks ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    July 22, 2025 at 3:54 pm

    I’m confused by your mention of the values of keyframes 2 and 3, but this example might be helpful. It will interpolate directly between the path values at keyfames 1 and 4 over the time defined by tStart and tEnd. It assumes that the path has the same number of points at keyframes 1 and 4:

    function interp(a1,a2,pct){
    a = [];
    for (var i = 0; i < a1.length; i++){
    a.push(linear(pct,0,1,a1[i],a2[i]));
    }
    return a;
    }
    tStart = 0;
    tEnd = 1;
    t1 = key(1).time;
    t2 = key(4).time;
    t = linear(time,tStart,tEnd,0,1);
    p1 = points(t1);
    p2 = points(t2);
    p = interp(p1,p2,t);
    i1 = inTangents(t1);
    i2 = inTangents(t2);
    i = interp(i1,i2,t);
    o1 = outTangents(t1);
    o2 = outTangents(t2);
    o = interp(o1,o2,t);
    createPath(p,i,o,isClosed())
  • Yoan Boisjoli

    July 22, 2025 at 4:05 pm

    using points(), inTangents(), and outTangents() is so clever!

    That’s exactly what I needed!

    Thank you Dan, again and again. 😅

  • Yoan Boisjoli

    July 22, 2025 at 7:49 pm

    And I understand your confusion! Actually, this is for a MOGRT. I’ll have different shape configurations and they will transform according to the path selection (keyframe).

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