Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Invert 0% and 100%

  • Invert 0% and 100%

    Posted by Filip Stillerska on December 21, 2018 at 2:34 pm

    I’ve got two value sliders (not necessarily Slider Controls though) on different layers that have a range between 0% and 100%. I want value A to be the “opposite” of value B; for example, when value A is 100% value B should be 0%; when value A is 0% value B should be 100%; when value A is 50% value B should be 50%; when value A is 20% value B should be 80% and so on…
    I hope that my explanation is understandable.

    Thomas Hannen replied 7 years, 4 months ago 2 Members · 1 Reply
  • 1 Reply
  • Thomas Hannen

    December 21, 2018 at 3:36 pm

    Assuming slider A is limited to values between 0 and 100, slider B just needs to be a value of 100 minus the value of slider A.
    You can do this like this:

    The expression in Slider B’s value is:
    100-(effect("Slider Control A")("Slider"))

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