Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesCreative Cloud DebateFAQ

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
Share on Facebook
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
Reply   Like  
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]