ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Pause keyframe animation at marker

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nate Vander Plas
Pause keyframe animation at marker
on Mar 5, 2018 at 10:20:19 pm

This seems like something that would have been answered already, but I couldn't find it. I have some tracking keyframes on some footage (for stabilization) and I want to pause that animation at a layer marker. Basically the expression should say something like this:

if the current time <= marker time, just use the keyframe animation;
else just display the value at the marker

I tried my hand at writing this and couldn't get it working.



Return to posts index

Dan Ebberts
Re: Pause keyframe animation at marker
on Mar 6, 2018 at 12:04:30 am

The simplest version would probably be something like this:


m = marker;
if (m.numKeys > 0){
if (time < m.key(1).time)
value
else
valueAtTime(m.key(1).time);
}else
value



Dan



Return to posts index

Nate Vander Plas
Re: Pause keyframe animation at marker
on Mar 6, 2018 at 3:23:52 pm

Thanks, Dan! This works like a charm! I don't need any more functionality for what I'm doing right now, but I can see for the future and for others, it might be helpful to have the option to re-enable the keyframed animation with another marker. Maybe even an unlimited version where all odd-numbered markers "pause" the animation and all even ones "play" it (from where you left off, or jumping to the current time keyframe)? Is this possible?



Return to posts index


Dan Ebberts
Re: Pause keyframe animation at marker
on Mar 6, 2018 at 6:16:58 pm

Definitely possible. It does get more complicated though...


Dan



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]