Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Change color value once a slider passes a given value.

  • Change color value once a slider passes a given value.

    Posted by Jonathan Ficcadenti on September 10, 2013 at 12:51 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

    Dan Ebberts replied 12 years, 12 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    September 10, 2013 at 2:58 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

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