Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Hold Value when it reaches a certain number

  • Hold Value when it reaches a certain number

    Posted by Jacob Resch on August 9, 2018 at 12:16 pm

    Is there a way to stop or hold a value, when it reaches a certain number?
    So if my slider reaches 219 it should hold that value and if another expression wants to decrease the number it should still hold that 219 value.

    Or maybe another way to put it is, that I don’t want the value to decrease.

    Is this possible?

    Thanks a lot!

    Emil Stefanow replied 7 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Kalleheikki Kannisto

    August 9, 2018 at 1:16 pm

    You will need to check from beginning of comp (with a loop) to the point where the slider reaches 219 for the first time and if this point is earlier in time than current time, set the value to 219. If the first occurrence is not early on, this could be slow. Personally I try to avoid such expressions if I can. But sometimes it is unavoidable, if you’re making a file for someone else as a template for instance.

    Kalleheikki Kannisto
    Senior Graphic Designer

  • Emil Stefanow

    August 29, 2018 at 10:30 am

    Hi Jacob,

    Have a look at Dan’s solution, he uses Math.max:

    https://forums.creativecow.net/thread/227/31816

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