Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions linear expression

  • Posted by Zoltán Riskó on August 23, 2016 at 8:49 pm

    Hy guys!

    I have an expression which link my animation to my marker so i can strech the animation.
    Can you help me how can I achieve to use bezier animation because linear()…is linear.

    Thank you very much! 🙂

    L = thisComp.layer("Point_Control");
    if ((L.marker.numKeys > 0) && (numKeys > 1)){
    t1 = key(1).time;
    t2 = L.marker.key(1).time;
    val1 = valueAtTime(key(1).time);
    val2 = valueAtTime(key(2).time);
    linear(time,t1,t2,val1,val2);
    } else {
    value;
    }

    Zoltán Riskó replied 9 years, 8 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 23, 2016 at 10:58 pm

    If you want the same ease as your keyframed animation, this should work:


    L = thisComp.layer("Point_Control");
    if ((L.marker.numKeys > 0) && (numKeys > 1)){
    t1 = key(1).time;
    t2 = L.marker.key(1).time;
    t = linear(time,t1,t2,t1,key(2).time);
    valueAtTime(t)
    } else {
    value;
    }

    Dan

  • Zoltán Riskó

    August 24, 2016 at 5:34 am

    Thanks Dan how simple and gentle solution! 🙂 Works like a charm!

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