Skip to main content
shaneg6443592
Participant
May 24, 2018
Question

Link a keyframe to slider control without affecting other keyframes

  • May 24, 2018
  • 2 replies
  • 10091 views

I'm designing a lower third for one of our brands and have an animated object with 3 keyframes.

I need to link the 3rd keyframe to a slider so my team can eventually adjust that value in Premiere with essential graphics without affecting the other keyframes.

What expression should I use to do this?

I imagine it would look something like this (with better syntax):

if ( key(index) = 3 ) {

key(index).value = effect("Slider Control")("Slider");

}else

key(index).value = value

2 replies

angie_taylor
Legend
June 16, 2018

Almost right. You'll need a Linear expression in there to convert values. Here's a solution that will allow you to control the KF between 0 and the slider value, courtesy of the brilliant Dan Ebberts;

if (numKeys > 1){

t1 = key(1).time;

t2 = key(2).time;

v1 = 0;

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

linear(time,t1,t2,v1,v2);

}else value

Participant
December 5, 2018

I like this expression,

But what can I do to link more than 2 keyframes to sliders?

Key1= slider1; key2=slider2; key3=slider3

etc.

acertik
Inspiring
June 13, 2018

Has anyone figured out a solution for this? I'm doing the same thing, only I want to link a specific keyframe to a sourceRectAtTime() for the lower third text layer.

Thanks.