Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions pause a keyframe without copying it

  • pause a keyframe without copying it

    Posted by Mohannad Talafeeh on December 10, 2011 at 1:14 am

    hi , I am looking for an expression that makes the key frame to pause for a while without the need to copy the same keyframe and offsetting it ,keeping in mind that I don’t want to get the hold keyframe style ,what I want is that the keyframe holds its value for a given amount of time then it animates toward the next key.

    thanks

    Mohannad Talafeeh replied 14 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 10, 2011 at 6:21 am

    Try this:


    holdTime = .5;
    n = 0;
    if (numKeys > 0){
    n = nearestKey(time).index;
    if (key(n).time > time) n--;
    }

    if (n > 0 && n < numKeys){
    t = linear(time,key(n).time+holdTime,key(n+1).time,key(n).time,key(n+1).time);
    valueAtTime(t);
    }else
    value

    Dan

  • Mohannad Talafeeh

    December 10, 2011 at 9:18 pm

    thanks Dan that works perfectly !, great peace of code…

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