ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Control gap time between start and end animation

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
jano sempere
Control gap time between start and end animation
on Dec 13, 2017 at 11:37:05 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


Return to posts index

Dan Ebberts
Re: Control gap time between start and end animation
on Dec 13, 2017 at 4:42:17 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



Return to posts index

jano sempere
Re: Control gap time between start and end animation
on Dec 20, 2017 at 9:18:20 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


Return to posts index

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