Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Control gap time between start and end animation

  • Control gap time between start and end animation

    Posted by Jano Sempere on December 13, 2017 at 11:37 am

    Hi,

    I’m thinking about how to prepare useful template for essential graphics.
    The point is to set 2 keyframes for in animation and 2 keyframes for out, (thinking simple, shape come to center from left) and control the gap when comp is static with a slider in seconds (you can’t keyframe in essential graphics).

    At this point don’t know if work with precomp time remaped or directly with shapes keyframes.
    I wonder if setup with 4 or 3 keyframes.

    Very lost and many questions.
    Thanks.

    Motiongrapher at cinestorm.es

    Jano Sempere replied 8 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    December 13, 2017 at 4:42 pm

    Something like this should stretch whatever happens between 2nd and next-to-last keyframes (needs 4 keyframes to do anything):


    if (numKeys >= 4){
    ts = effect("Slider Control")("Slider");
    if (time < key(2).time){
    value
    }else if (time < key(2).time+ts){
    t = linear(time,key(2).time,key(2).time+ts,key(2).time,key(numKeys-1).time);
    valueAtTime(t);
    }else{
    t = time - (key(2).time+ts);
    valueAtTime(key(numKeys-1).time+t);
    }
    }else
    value

    Dan

  • Jano Sempere

    December 20, 2017 at 9:18 am

    Thanks Dan,

    It works like a charm, using it in a template for premiere pro, you can set the duration between start animation and end animation with the slider.

    You always rock.
    Thanks.

    Motiongrapher at cinestorm.es

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