Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Slider Control Value

  • Slider Control Value

    Posted by Tiago Cav on May 26, 2015 at 9:50 pm

    There any way to limit (edit) the “Value Range” of the Slider Control, impeding from getting negative value, with minimum 0 and maximum 100 positive?

    Thanks.

    Tiago Cav replied 10 years, 11 months ago 2 Members · 4 Replies
  • 4 Replies
  • Walter Soyka

    May 27, 2015 at 11:12 am

    No. You can edit the slider range (via right-click), but not the value range.

    You can, however, limit the value you take from the slider in your expression:
    clampedValue = linear(effect("Slider Control")("Slider"),0,100,0,100);

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Tiago Cav

    May 27, 2015 at 5:30 pm

    I understand.
    See image, please:

    One last question. Now I know that no is possible to change the “Value Range”.
    But there is an expression which causes each time the property value is greater than 100, go back to 100. And each time that is less than 0, back to 0?
    As in the example image, the value exceeds 100 to 123.60, I want, when I change the value to a number greater than 100 as 123.60, the value back to 100. And when is negative, return to 0. For the value, do not go beyond what is limit to the Silder.

    Thanks.

  • Walter Soyka

    May 27, 2015 at 5:42 pm

    Sure, you can adapt the expression I showed above right on the slider itself:

    linear(value,0,100,0,100);

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Tiago Cav

    May 27, 2015 at 6:10 pm

    Okay, cool.

    By clicking and dragging, “background value” is:

    When I loose the click, Value with limits defined by the expression is:

    When I click the value and drag, this value becomes too large to be reaching the limit of the “Value Range”, only takes work to get back to 100 … It has to drag it all back, that was all I wanted to draw attention . But it’s fine… if no have how to limit this “background value”.

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