-
How to determine an exact value when hitting Reset button of a Slider Control
Hi Everybody,
I’d like to find an expression for resetting a property value to an exact value when hitting the Reset button.
Steps:
– Create a shape layer and a null object.
– Put a Slider Control on the null object.
– Link the Scale transform property of the Shape Layer to the Slider Control of the null object.
Now you can control the size of the Shape Layer via the Slider Control but when you hit the Reset button on the Slider Control, the value drops down to 0.
EASY!
Is it possible to add an Expression to the Shape’s Layer scale property, not on the Slider Control, so that when hitting the Slider Control Reset button, the value goes to 100 (or any desired value) and not to 0?
I found this simple expression:
if (value==0) 30 else “value”
This expression works fine when I apply it on the Slider Control value on the null object.
That’s great but it’s not what I want.
I want to leave the Slider Control free from any expressions so I can change the value as I prefer.
I mean:
If I set the Slider Control value up to 150 or down to 30, simultaneously the Shape’s Layer size will increase or decrease.
Now I want to hit the Slider’s control Reset button and I want the value to go to 100.
Is it possible?
Thanks in advance
Sorry, there were no replies found.