-
(Dual comps) Refer layer name to own comp name?
Hi,
x = comp(“DualComp”).layer(“Stan1”).transform.position[2];
most of you know this links the z position of two layers that are located in separate comps.
Layer “Stan1” is a composition nested in comp “DualComp”
Within the “Stan1” comp, I applied the above expression to a layer.
My question: because my comp name “Stan1”, becomes its layer name when I nest it in “DualComp”, is there a code i can replace “Stan1” with in the above expression?
I want to be able to duplicate nested comp “Stan1” within “DualComp” and have the expression update accordingly.
for example:
x = comp(“DualComp”).layer(USE THE NAME OF THE COMP YOU ARE IN).transform.position[2];
haha
Thank you!