Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Smooth roll with ease at the end

  • Smooth roll with ease at the end

    Posted by Jarle Leirpoll on August 14, 2017 at 3:25 pm

    Sorry, another time-related question from me… I can’t seem to understand how to trigger events at a certain time with expressions.

    Trying to create a perfectly smooth roll mogrt (fixed number of px per second) that slows down maybe half a second before it stops. The expression below makes it roll in from the bottom, but of course it just continues to roll.

    Ideally, I’d like it to both start and stop at a slider controlled vertical positions, so the user can decide these.

    Hmmm…

    t = time;
    fr = t/thisComp.frameDuration;
    x = value [0];
    s = -1 * Math.round(thisComp.layer("Controls").effect("Speed")("Slider"));
    y = Math.round((fr*s)+(thisComp.height/2));
    [x,y]

    Jarle Leirpoll
    PremierePro.net

    Jarle Leirpoll replied 8 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    August 14, 2017 at 4:31 pm

    I don’t know if you’ve seen this, but it might help:

    https://motionscript.com/articles/speed-control.html

    Dan

  • Jarle Leirpoll

    August 15, 2017 at 10:35 pm

    I’ve read that article before, and I re-read it now – but I still haven’t been able to figure out a way to do this. All the methods I’ve seen use markers or keyframes, which is not an option in this template.

    Thank you so much for sharing all the info on expressions, BTW. Your site is still the reference for all things related to expressions!

    Jarle Leirpoll
    PremierePro.net

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