-
more expression begging
right..
is it possible for an expression to use the name of the comp in which it resides as a variable, and then to use this variable to define which properties it references from another comp?
to give you the context:
i have made a comp – “comp A” – which has all kinds of layers with properties ultimately defined by 2 variables. “Comp A” is nested in “comp B”.
the variables are:
1: the distance from the nested layer in comp B to the camera in comp B
2: the relative rotation between the two layersthe effect being that as the camera approaches the layer, its distance and rotation is refelcted visibly by elements in the layer.
i want lots and lots of instances of this layer. since it is all done with expressions, if all instances were identical, they would mirror the first layer since the expressions are all pointing to this to calculate their values.
i wish to avoid manually adjusting all the expressions to make their calculations according to the appropriate layer.
i was wondering if i could write a universal script that would use the number of the comp (ie “comp A02”, “comp A03”) it resides in to determine which layer from the main comp (“comp B”) to access.
I hope this makes sense.
if anyone can help me out il be very grateful.
alex