Activity › Forums › Adobe After Effects Expressions › Control the size of one keyframe.
-
Control the size of one keyframe.
Patrick Evans replied 6 years, 4 months ago 8 Members · 23 Replies
-
Dan Ebberts
August 10, 2018 at 4:58 pmI’m just guessing:
x2 = thisComp.layer(“Nulo 8”).effect(“ancho tweet”)(“Deslizador”);
y2 = thisComp.layer(“Nulo 8”).effect(“alto tweet”)(“Deslizador”);
x = linear(time,key(1).time,key(2).time,key(1).value[0],x2);
y = linear(time,key(1).time,key(2).time,key(1).value[1],y2);
[x,y]Dan
-
Alexandros Yennaris
December 11, 2018 at 5:16 pmHi Dan.. Thank you for being awesome
How would i add easing to this?
-
Dan Ebberts
December 11, 2018 at 5:29 pmJust switch linear() to ease() or easeIn() or easeOut().
Dan
-
Alexandros Yennaris
December 11, 2018 at 5:40 pmQuick response.. thanks.. Basically i have some custom ease.. I am attaching the file so you can understand what i am after.. If you delete the expression you will see the desired easing, what i am trying to do is to be able to control the box with the slider..
12940_lowerthird.aep.zip -
Dan Ebberts
December 11, 2018 at 6:20 pmIn your case, I think this is all you need:
x2 = thisComp.layer(“Control”).effect(“Slider Control”)(“Slider”);
x = value[0]*x2/key(2).value[0];
[x,value[1]]Dan
-
Alexandros Yennaris
December 11, 2018 at 6:37 pmI bow before you.. You are a GOD..
Thank you so much
-
Björn Sieck
February 16, 2019 at 11:44 pmHi Dan,
this is for the X – axisx2 = 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]]and how does it work for the Y – axis? I tried to change X to Y and I also played with the values, but I only can control the X – axis.
I Have 2 keyframes on the Y – axis for Position.
I also tried to separate X and Y Position.Thanks for a little help.
B. -
Dan Ebberts
February 16, 2019 at 11:51 pmLike this I guess:
y2 = thisComp.layer(“Null 1”).effect(“Slider Control”)(“Slider”);
y = linear(time,key(1).time,key(2).time,key(1).value[1],y2);
[value[0],y]Dan
-
Björn Sieck
February 19, 2019 at 9:40 pmHello again,
I play around with the expressions here and I’ve got 2 problems I can’t fix.This expression I use to control the 2nd and 3rd keyframe together, but its linear and I like to use the custom ease that I create.
sVal = thisComp.layer(“Control”).effect(“Text Position”)(“Slider”);
if (time < key(2).time)
y = linear(time,key(1).time,key(2).time,key(1).value[0],sVal)
else if (time < key(3).time)
y = sVal
else
y = linear(time,key(3).time,key(4).time,sVal,key(4).value[0]);
[value[0],y+230]This expression I use to set the start position of a beam that comes in from the right:
x1 = thisComp.layer(“Control”).effect(“Beam Start Position”)(“Slider”);
x = value[0]*x1/key(1).value[0];
[x,value[1]]I also like to control the end position of the beam on the left side with the last keyframe number 6 (or a different keyframe) with it’s own controller. Also with custom ease (I think that is line two in this expression). I tried to combine this two expressions but I don’t know how. The other thing is, when I change the first keyframe with the slider, also the last keyframe (number 6) changes the position, but I don’t want it in this way.
It would be nice to get some help. Thank you.
Reply to this Discussion! Login or Sign Up