• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Remap keyframe timing with slider

Community Beginner ,
Jul 20, 2019 Jul 20, 2019

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?

TOPICS
Expressions

Views

1.1K

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 20, 2019 Jul 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

Likes

Translate

Translate
Community Expert ,
Jul 20, 2019 Jul 20, 2019

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 20, 2019 Jul 20, 2019

Copy link to clipboard

Copied

Thanks, That did the trick

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 28, 2021 Nov 28, 2021

Copy link to clipboard

Copied

Thanks so much for this, Dan.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 21, 2022 Jan 21, 2022

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2022 Jan 21, 2022

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)

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 18, 2022 May 18, 2022

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.

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 18, 2022 May 18, 2022

Copy link to clipboard

Copied

Nevermind, it worked after changing Premiere to english.

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 02, 2022 Jul 02, 2022

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines