-
Controlling parameters of multiple expressions from a “master” expression or layer
Hi:
I’m using this expression on 60 layers to mimic aerial expression, making each layer dissolve out as it gets farther from the camera (thank you Dan, et. al.):
L = thisLayer
P = L.toWorld(L.anchorPoint);
dist = P[2] – thisComp.activeCamera.position[2];
linear(dist,20000,60000,100,0)This works great, but now I want each layer to start at, say, 85% opacity. The brute force way for me to revise this would be to change the 100 to 85 and copy and paste this new expression into the 59 other layers. There must be a more efficient way to do this. I’m guessing there’s a way to assign a variable for each of the four parameters in this aerial perspective expression and assign a value to those parameters in a different expression or something so that by changing the values in that one “master” expression it will ripple through all 60 layers with the aerial perspective expression. I think I know how to set up the variables in this aerial perspective expression, but I’m not sure how to point those to another expression or layer or how I assign the values I want in that “master” expression.
Any suggestions are appreciated.
Thank you.
Shawn Marshall
Marshall Arts Motion Graphics