Skip to main content
Participant
July 20, 2019
Answered

Remap keyframe timing with slider

  • July 20, 2019
  • 1 reply
  • 4844 views

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?

Correct answer Dan Ebberts

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

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
July 20, 2019

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

sahils98Author
Participant
July 20, 2019

Thanks, That did the trick