Copy link to clipboard
Copied
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?
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Thanks, That did the trick
Copy link to clipboard
Copied
Thanks so much for this, Dan.
Copy link to clipboard
Copied
Hi Dan, would this be possible with 4 keyframes?
I have an animated precomp with an "animate-in" range (first two keyframes) and an "animate-out" range (3rd and 4th keyframes).
Ideally, I'd be able to control the second keyframe and the third keyframe so I can extend or compress the animation
Copy link to clipboard
Copied
Try this:
t2 = effect("Slider Control")("Slider");
t3 = effect("Slider Control 2")("Slider");
if (time < t2){
t = linear(time,key(1).time,t2,key(1).time,key(2).time);
}else if (time < t3){
t = linear(time,t2,t3,key(2).time,key(3).time);
}else{
t = linear(time,t3,key(4).time,key(3).time,key(4).time);
}
valueAtTime(t)
Copy link to clipboard
Copied
Is there a way to make this work in Premiere in the Essential Graphics section?
My animation just ignores the sliders.
Copy link to clipboard
Copied
Nevermind, it worked after changing Premiere to english.
Copy link to clipboard
Copied
Hey @rheinklangmedia - any chance you'd be willing to share the mogrt you have working in premiere? I'm really more of a tinkerer so I think I need to get my hands on a working example to make it work for my own context. If anyone is curious I'm trying to create a dynamic-caption-generator mogrt that allows for timing the specific words with a slider.