Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions set maximum value

  • Posted by Pompa Dompa on February 1, 2013 at 3:06 pm

    Hello everyone !

    I have one slider controll linked to multiple effekts. I would like to cap the value for one of the effekts.
    Example: slider goes from 0 to 100 -> Effekt one goes from 0 to 100 but effekt two only from 0 to 5.

    I would be thankfull for some help 🙂

    //min=[0];max=[5];thisComp.layer("Null 1").effect("REDBLUEGREEN")("Slider")

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

    February 1, 2013 at 11:23 pm

    I think this does what you’re looking for:

    s = thisComp.layer(“Null 1”).effect(“REDBLUEGREEN”)(“Slider”);
    clamp(s,0,5)

    Dan

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