Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Slider Controller: Croping highest value with expressions

  • Slider Controller: Croping highest value with expressions

    Posted by David Escurriola on October 7, 2012 at 10:28 am

    The opacity value ranges between the lowest (0) to the highest (100) percentage. If I link the opacity value to a slider controller, although I set the range between 0 -100, It can achive values that are higher than 100 or lower than 0. Is there a way to crop the highest and lowest values to 0-100.

    The opacity controller works perfectly; when the value is higher than 100 it will stuck by 100%. is just for the sake of learning expressions and avoiding confusions since this script will be used by other people with lesser skills on AFX.

    Thank you very much.

    David

    David Escurriola replied 13 years, 10 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    October 7, 2012 at 2:47 pm

    This should work:

    clamp(value,0,100)

    Dan

  • David Escurriola

    October 7, 2012 at 8:52 pm

    Thanks Dan!

    So easy! Amazing. Thanks!

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