-
Referencing a comp if 2 comps have the same name
Hello.
I’ve been working with after effects for quite some time now but this is the first time I stumble onto something like that…
So, basically, I am making a template of sorts. For several reasons I’ve found it easier to break the template into several separate AEP files, so if I need anything, I would just drag and drop the file in my new project and have a brand new copy of all the nested layers inside it. Each file has a “Settings” comp, which includes only one null object, also named settings, which contains expression controls to control all the other compositions in the project.
And here comes the problem. When I add the aep file twice, I end up with two “settings” compositions. So, when I reference it with comp(“settings”).layer(“settings”) the two separate aep files follow the values of only one of those settings comps.
Is there any way to go around that? I, for one, found a solution but it feels like cheating 🙂 If I import the first aep file and rename my comp to “settings 1”, all expressions will update. Then I import the next one and again rename to “settings2” and so on.
The bedrock of my question:
but other than that. Is there a way to reference a SPECIFIC comp if you have 2 comps with the same name?