Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Pause keyframe animation at marker

  • Pause keyframe animation at marker

    Posted by Nate Vander plas on March 5, 2018 at 10:20 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.

    Dan Ebberts
    replied 8 years, 1 month ago
    2 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    March 6, 2018 at 12:04 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

  • Nate Vander plas

    March 6, 2018 at 3:23 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?

  • Dan Ebberts

    March 6, 2018 at 6:16 pm

    Definitely possible. It does get more complicated though…

    Dan

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