ADOBE AFTER EFFECTS: Forum Expressions Tutorials Podcasts Creative Cloud Debate

Re: clamping a slider value but having two different effects for 'above' and 'below' the limits

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


jim lefevreRe: clamping a slider value but having two different effects for 'above' and 'below' the limits
by on Mar 19, 2012 at 9:26:37 am

Ahhh... a stacked if - else -if

That's the puppy.

In actual fact I managed a bit of a work around in the meantime which is far less elegant which pre-works-out a value before it heads into the main if statement

if (SLIDER_value < 0) then {VALUE_onoff = 0} else {VALUE_onoff = 100);
VALUE_var = SLIDER_value;

if (SLIDER_value > 0) then {VALUE_var} else {VALUE_onoff)


but I'll go back in and try that other suggestion for the sakes of personal education.

Thank you thank you thank you

x
jim

http://www.jimlefevre.com


Posts IndexRead Thread 


Current Message Thread:





© 2016 CreativeCOW.net All Rights Reserved
[TOP]