Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions ‘Fading in’ to hold keyframes?

  • ‘Fading in’ to hold keyframes?

    Posted by Sam Harris on May 29, 2015 at 1:45 am

    I’ve noticed a lot with the characer animation I do that most of the motion takes place in quick intervals between poses, usualy around 8 or so frames in between. What I’ve done in the past is just move to the point where the motion occurs, copy the and paste the previous keyframe, move forward eight or so frames, and then make the next movement.

    With such a formula of movement timing occuring here I wonder if the workflow could be sped up with an expression.

    What I’m looking for here is an expression that will essentially make my keyframes behave like hold keyframes – except that eight or so frames before the keyframe it will begin the motion (with easing).

    Is this possible?

    Ze’ev Gilad replied 9 years, 5 months ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    May 29, 2015 at 3:53 am

    Like this maybe:


    tEase = 8*thisComp.frameDuration;
    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (time >= key(n).time) n++;
    if (n > numKeys)
    key(numKeys).value
    else if (n == 1)
    key(1).value
    else
    ease(time,key(n).time-tEase,key(n).time,key(n-1).value,key(n).value);
    }else
    value

    Dan

  • Sam Harris

    May 29, 2015 at 4:51 am

    Perfection in a can! Thank you sir.

  • Ze’ev Gilad

    March 15, 2017 at 1:47 pm

    Dan saves my ass … again!

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