-
Sliders and Position
Hello all,
I’ve spent about 45 minutes searching the posts to try and solve my problem. No luck yet.
I’m trying to build a setup where the velocity (maybe it’s actually acceleration) of a layer’s position is tied to a slider so that I can simply keyframe my slider and have the layer move at a constant rate, slow down and stop or reverse smoothly.
I found this expression, which is almost perfect except for the fact that in some places the movement is choppy.
Can anyone offer a solution?
Thanks much,
Jon
fd=thisComp.frameDuration;t=0;
x=0;
while (time>t) {
acceleration = thisComp.layer("TimelineMoveRate").effect("Slider Control")("Slider").valueAtTime(t);
x+=acceleration*fd;
t+=fd;
}value + [x,0,0];
Sorry, there were no replies found.