ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

'Fading in' to hold keyframes?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sam Harris
'Fading in' to hold keyframes?
on May 29, 2015 at 1:45:32 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?

Return to posts index

Dan Ebberts
Re: 'Fading in' to hold keyframes?
on May 29, 2015 at 3:53:14 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)
else if (n == 1)


Return to posts index

Sam Harris
Re: 'Fading in' to hold keyframes?
on May 29, 2015 at 4:51:26 am

Perfection in a can! Thank you sir.

Return to posts index

Ze'ev Gilad
Re: 'Fading in' to hold keyframes?
on Mar 15, 2017 at 1:47:18 pm

Dan saves my ass ... again!

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved