Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Overshoot position expression with ease in keyframe

  • Overshoot position expression with ease in keyframe

    Posted by Daniel Lorenzo on August 5, 2015 at 2:53 pm

    Hi everybody

    I’m trying to apply the overshoot expression from Ebberts to a position animation, but it seems to work only with linear keyframes. I would like to reduce velocity as we approach the second keyframe, but when I convert it to ease in bezier, the expression doesn’t work anymore. Does anybody know how to combine the overshoot expression with an ease in animation? Thanks a lot!

    freq = 3;
    decay = 5;

    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time) n--;
    }
    if (n > 0){
    t = time - key(n).time;
    amp = velocityAtTime(key(n).time - .001);
    w = freq*Math.PI*2;
    value + amp*(Math.sin(t*w)/Math.exp(decay*t)/w);
    }else
    value

    Daniel Lorenzo replied 10 years, 10 months ago 2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 5, 2015 at 3:42 pm

    I don’t think that will work. The overshoot is based on velocity coming into the keyframe. If you ease in, there’s no velocity.

    Dan

  • Daniel Lorenzo

    August 5, 2015 at 4:09 pm

    Thanks Dan for your quick reply. I understand what you mean. So, if you want to gradually reduce the velocity of your animation and overshoot at the end, would you suggest manual keyframing, then?

  • Daniel Lorenzo

    August 5, 2015 at 4:47 pm

    Thanks to your explanation, I found myself the answer. It was just a matter of tweaking the velocity graph, changing the incoming speed of the second keyframe to anything above 0. Thanks for your help!

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