FORUMS: list search recent posts

Change color value once a slider passes a given value.

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jonathan Ficcadenti
Change color value once a slider passes a given value.
on Sep 10, 2013 at 12:51:48 am

Hello CC community,

I apologize in advance if some one else has already answered this question, but:

I need an expression that does the following:
If the value of a given property (in this case, a slider control) exceeds a certain value (for example, 75), then a separate color control value would switch from color 1 (white) to color 2 (red).

Thank you in advance for your help with this.

-Jonathan


Return to posts index

Dan Ebberts
Re: Change color value once a slider passes a given value.
on Sep 10, 2013 at 2:58:35 am

Something like this maybe:

s = effect("Slider Control")("Slider");
c1 = [1,1,1,1]; // white
c2 = [1,0,0,1]; // red
if (s > 75) c1 else c2


Dan



Return to posts index

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