Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Increase slider value by one, every 90 frames

  • Increase slider value by one, every 90 frames

    Posted by James Pierson on February 6, 2022 at 1:53 am

    Hello,

    I’m looking to increase a slider value by one every 90 frames, so on frame 0 its ‘1’, frame 90 it would be ‘2’ and on frame 120 it would be ‘3’, and so on. They would need to be whole numbers (eg, not animate from 1 to 2 with decimal points across the 90 frame period).

    I’m particularly useless as expressions so have no idea where to begin, I was hoping some smart person on here might be able to help me out/point me in the right direction!

    Kind regards,
    James

    James Pierson replied 4 years, 7 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    February 6, 2022 at 3:20 am

    Try this:

    Math.floor(timeToFrames(time-inPoint)/90) + 1
  • James Pierson

    February 7, 2022 at 5:52 pm

    You are amazing, this works perfectly – Thank you so much!

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