ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Manipulated first keyframe

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mathias Van Sele
Manipulated first keyframe
on Sep 6, 2018 at 8:11:12 am

Hey Guys

I'm trying to make a Lower third. And let the editors change the text values in Premiere with Essential graphics.
Now i need to change the X-position of the first keyframe of the text layer.

At the moment i found following expresion:
x2 = thisComp.layer("Null 1").effect("Slider Control")("Slider");
x = linear(time,key(1).time,key(2).time,key(1).value[0],x2);
[x,value[1]]


It works but only for the second keyframe. How can i change it to the first keyframe?

Thanks alot.

x2 = thisComp.layer("Null 1").effect("Slider Control")("Slider");
x = linear(time,key(1).time,key(2).time,key(1).value[0],x2);
[x,value[1]]


Return to posts index

Andreas Brand
Re: Manipulated first keyframe
on Sep 6, 2018 at 3:00:25 pm

I hope I understand you right.

You want to replace the x-value of the first keyframe with the value of the slider?

If so, try this code, I hoope it helps:

x1 = thisComp.layer("Null 1").effect("Slider Control")("Slider");
x = linear(time,key(1).time,key(2).time, x1, key(2).value[0]);
[x,value[1]]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]