-
thisComp “display name” possible?
Hello,
I testing out a theory for later use and I have hit a small snag.
In my proposed setup I have my parent comp with many (duplicated) comps inside it. The child comp, in this instance, is a shape layer.
Added to the sub comps within the parent are controls, these are to adjust variables within the child sub comps, for instance stroke width etc.
In the sub child comps I am using expressions like this one:
comp(“Parent”).layer(thisComp.name).effect(“Stroke Width”)(“Slider”)
Now all this works perfectly on a single comp, however I want a setup where I can duplicate the child comp many times and then adjust the variables per instance.
The problem is the above expression reads the name of the comp, not the “displayed” name. So if you duplicate a sub comp and rename it within the parent comp (note not renaming it in the Project window), then the name is still the same and only one takes precedence and all the sub comps take their values from it and not it’s own controls.
The reason for the pre-comps is that I want to be able to tweak and change the contents without having to re-do it x number of times, but yet I want to be able to change certain values per instance it’s used, but yet I don’t want to have to keep tweaking the expressions/values within the child comp.
So, is it either possible to pull the “display” name of the comp, or target it directly without a name from the expression? For instance something like:
Pseudo:
thisComp.parent.effect(“Stroke Width”)(“Slider”)
I know I can work around the problem, it’s just the amount of extra work involved and the time it would take to tweak/change the contents would be annoying.
Any help would be greatly appreciated.

