-
Scaling depending on x position
Dan kindly supplied the code below:
maxScale = 100;
minScale = 5;
minScaleDist = 100;
pointer = thisComp.layer(“pointer”);
d = Math.abs(pointer.transform.position[0] – transform.position[0]);
ease(d,0,minScaleDist,[maxScale,maxScale],[minScale,minScale])It works great.. but as you can imagine I have 100’s of these images and suppose I wanted to be able to change one of those variables. Could i set it up so that i could edit the script in one place and have it apply to all those layers?
Thanks again
J