Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Slider – Adjusting min/max with expression

  • Slider – Adjusting min/max with expression

    Posted by Adam Zygadlo on April 10, 2012 at 1:16 pm

    Hey everyone,

    I am building up an effect that is linked to slider controls in After effects; and then make it a preset for future projects; or share with friends or online.

    In the expression controller (in this a slider), by default it ranges from 0 to 100. Is there anyway to adjust the min/max like ‘0 to 25′ or ’54 to 67’, etc. But the user can still slide the controls. I remember a website that shows how to produce this but cannot find it.

    Kind regards,
    +Z

    Adam Jozef Zygadlo
    Motion Graphic Designer

    07708 124 915
    http://www.jarbrain.com
    ‘Filled with brainy goodness.’

    Adam Zygadlo replied 14 years, 1 month ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    April 10, 2012 at 1:34 pm

    I’m not sure, but you may be talking about hacking the PresetEffects.xml file in AE’s Support Files folder. It can be tricky, so I recommend making a backup copy of the file before you start messing with it.

    Dan

  • Adam Zygadlo

    April 10, 2012 at 1:41 pm

    Hmmm, I am not looking to hack the actual After Effect software. Just apply a min/max range in the slider.
    Excuse me with my lack knowledge of expression..


    min = 10;
    max = 50;
    ... etc.

    +Z

    Adam Jozef Zygadlo
    Motion Graphic Designer

    07708 124 915
    http://www.jarbrain.com
    ‘Filled with brainy goodness.’

  • Dan Ebberts

    April 10, 2012 at 1:48 pm

    You can change the slider min and max values by right clicking on the value in the Effect Controls window and selecting Edit Value. Is that what you mean?

    Dan

  • Adam Zygadlo

    April 10, 2012 at 2:03 pm

    Ah yes, that will do nicely! :^) Cheers fella! As I mentioned before, I know it was possible and seen expressions a couple of years ago.

    Is there a way to make simple increments like 1, 2, 3 etc; instead of 1.43, 2,67… etc?

    Thank you spending the time on this,

    Cheers,
    +Z

    Adam Jozef Zygadlo
    Motion Graphic Designer

    07708 124 915
    http://www.jarbrain.com
    ‘Filled with brainy goodness.’

  • Dan Ebberts

    April 10, 2012 at 2:10 pm

    You could add an expression like this:

    Math.round(value)

    but then you’d have to adjust it by scrubbing the value rather than moving the slider.

    Dan

  • Adam Zygadlo

    April 10, 2012 at 2:16 pm

    I thought that was the case, well there’s no big deal really. :^)
    Thank you again fella; all the best until next time!

    +Z

    Adam Jozef Zygadlo
    Motion Graphic Designer

    07708 124 915
    http://www.jarbrain.com
    ‘Filled with brainy goodness.’

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