-
Reference “parent” comp in a pre-comp, without a specific string
Hi all,
I have a whole bunch of comps that are all doing more or less the same thing, and each of them has its own pre-comp in which there are two layers that serve as masks to a layer in the main comp. Each of those layers has a mask drawn on it that is currently defined by an expression like the first example below, using a string to reference a specific comp.
Is there any way to do this that would be similar to the “index” argument, so that instead of writing “comp(“Parent Comp”)”, I could write “comp(compIndex-1)” or something like that? My goal is to be able to duplicate both the main comp and the pre-comp, then drop the new pre-comp into the new main comp and have everything change dynamically, rather than having to go into the expressions in the new pre-comp and change the comp name references.
Thanks in advance for your help.
Cheers,
Stevecomp("003A_SessionLeader").layer("Head Mask 2").mask("Mask 1").maskPath————
Steve Renard
647-406-7991
st***@*********rd.com