-
Layer width as it moves on Z axis
I’ve made this example to simplify the original situation; The red circle has the following expression in its position:
a = thisComp.layer(“CIRCLE-BLUE”);
b = a.toWorld(a.transform.anchorPoint);
c = thisComp.layer(“CIRCLE-BLUE”).content(“Ellipse 1”).content(“Ellipse Path 1”).size;
[ (b[0]+c[0]/2) , b[1] ]
It is using the blue circle size to be parented to the right corner of the blue circle.
But the blue circle is a 3D layer, and when I move it on the Z axis, the red circle can’t calculate its new position based on the blue circle’s size referent to the comp.Is there a way to define blue circle’s width in real time as it moves on the Z axis?