-
Control scale keyframes with slider
This is the expression i’m using, and it’s not working currently. I have 4 keyframes total, and i’m unsure if I needed to add that in the expression as well(unsure how or where).
To further clarify, I have a box, animated on it’s X, it animates on, holds for a certain period of time, and then animates back to zero. I want to give the end user the ability to change the box’s scale with the slider. So if the scale is 100, if they set it to 20 on the slider, it would be 120, without having to adjust the keyframes. I hope that makes sense. Thanks for any help.if (numKeys > 1){
t1 = key(1).time;
t2 = key(2).time;
v1 = 0;
v2 = value + thisComp.layer("Info_box_ct").effect("infoBox_length")("Slider")
linear(time,t1,t2,v1,v2);
}else
value