-
graph style color change and position change
I’ve got 9 bars where I want a few lines to travel up and down and change to red at the top and green at the bottom.
I created a null object [index 1] for all of my controls.
each indicator bar has a ColorBalance HLS, so I could script on the Hue section. It ended up being simple calculations, so I got lucky there.
I create these expressions, but was hoping there might be a better way, like being able to do it by making the slider name equal to the layer name or something so I could just duplicate the layer?
For now I have to rename each expression.
Notice in the example, “height 9” is the slider which goes from 0-100Is there a way to do this so I don’t have to go through and change the expression on each layer manually?
Note: I’m asking this for Learning purposes only. I’m just trying to learn new things so in the future I can create things in more efficient ways, and maybe help a few other people with similar issues. I know this might be dumb for only 9 layers, so give me a break just this once forum troll.
Thanksexample for height bar #9 of 9
________________________________
Expression: Hue
control = thisComp.layer("controls").effect("height 9")("Slider");
-1 * control;Expression: Position
X = transform.position[0];
timesMe = 2.9 ;
control = thisComp.layer("controls").effect("height 9")("Slider");
Y = transform.position[1] + 1*-( control *timesMe );
[X,Y];