-
Controlling z axis in layer to bring image to front of the rest
I have 8 layers and I currently have them scaling up as they are passed across like Apple Doc. The issue is as they scale because of the layer order parts of the graphics are hidden beneath the layer objects on either side. So, I need to be able to bring the layers Z axis forward each time it is passed across. I have tried Dan Ebberts script attached but this only works with 1 layer, I am guessing I am missing a parameter in the script to adjust for each layer it’s applied to? Any Help would be great – Dan, if you see this please respond. I’ve attached an example image demonstrating the problem.
below = 0;
for (i = 1; i <= thisComp.numLayers; i++){
if (i == index) continue;
if (thisComp.layer(i).position[1] < value[1]) below--;
}
[value[0],value[1],below]
Regards
Mark
