Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Sliders and Position

  • Sliders and Position

    Posted by Jonathan Lutjens on July 31, 2012 at 5:42 pm

    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];

    Jonathan Lutjens replied 13 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy