Skip to main content
Participant
Jul 20, 2019 4:16 PM UTC
Answered

Remap keyframe timing with slider

I'm trying to make an Essential Graphics preset for some editors I work with. They have requested control over how long the animation lasts. So I have a text animation where the range is animated with 2 keyframes. I want to control the timeline position of each keyframe independently using sliders. Is there an expression for this?

Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Jul 20, 2019 4:31 PM UTC

Something like this, probably:

t1Start = effect("Slider Control")("Slider");

t1End = effect("Slider Control 2")("Slider");

t2Start = key(1).time;

t2End = key(2).time;

t = linear(time,t1Start,t1End,t2Start,t2End);

valueAtTime(t);

Dan

19 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Jul 20, 2019 4:31 PM UTC

Something like this, probably:

t1Start = effect("Slider Control")("Slider");

t1End = effect("Slider Control 2")("Slider");

t2Start = key(1).time;

t2End = key(2).time;

t = linear(time,t1Start,t1End,t2Start,t2End);

valueAtTime(t);

Dan

Translate
sahils98Author
Participant
Jul 20, 2019 5:34 PM UTC

Thanks, That did the trick

Translate