ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Numbers 1-100

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steven Sikorski
Numbers 1-100
on Mar 12, 2019 at 9:46:10 pm

I need help creating an expression to have 2 sets of numbers interact with each other.

I have to level graphs next to each other with a minimum of 0 and a max of 100 As the right graph goes up the left graph should go down with a value of both numbers always equalling 100.

I have an expression slider to move the right graph up and down from 0 - 100 and the numbers interact accordingly. Where I'm stuck right now is the only way I could get the left graph to be correct was to move it in the negative value. What can I add to the expression to remove the negative symbol?

Any help would be appreciated

Return to posts index

Dan Ebberts
Re: Numbers 1-100
on Mar 13, 2019 at 12:09:05 am

Just change your red expression to this:

100 - thisComp.layer("GreenSlider").effect("Slider Control")("Slider").value


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved