Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions How to determine an exact value when hitting Reset button of a Slider Control

  • How to determine an exact value when hitting Reset button of a Slider Control

    Posted by Nick Mara on November 25, 2020 at 4:40 pm

    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

    Nick Mara replied 5 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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