ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Slider Control Value

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tiago CavSlider Control Value
by on May 26, 2015 at 9:50:54 pm
Last Edited By Tiago Cav on May 26, 2015 at 11:23:21 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.


Return to posts index


Walter SoykaRe: Slider Control Value
by on May 27, 2015 at 11:12:21 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Tiago CavRe: Slider Control Value
by on May 27, 2015 at 5:30:09 pm
Last Edited By Tiago Cav on May 27, 2015 at 5:38:07 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.


Return to posts index



Walter SoykaRe: Slider Control Value
by on May 27, 2015 at 5:42:57 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Tiago CavRe: Slider Control Value
by on May 27, 2015 at 6:10:21 pm
Last Edited By Tiago Cav on May 27, 2015 at 6:22:18 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".


Return to posts index

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