ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Hold Value when it reaches a certain number

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jacob Resch
Hold Value when it reaches a certain number
on Aug 9, 2018 at 12:16:29 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!


Return to posts index

Kalleheikki Kannisto
Re: Hold Value when it reaches a certain number
on Aug 9, 2018 at 1:16:08 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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]