Any way to change properties of subcomp based on parent comp? I have a dozen 'main' comps which have a bunch of nested comps. I need to create about 30 versions of each main comp, with different colors.
The subcomps are animated shapes, which take their color from a color picker in the main comp.
I would love to avoid having to duplicate all the subcomps 30 times, so I don't have hundreds of copies.

Is there ANY way to allow a nested comp to change based on the comp within which it is nested?

I know there is no "thisComp.parent" option -- since a comp can be nested in many different parents -- but is there a way to "push" a property "down" into a subcomp? Or any clever workaround? Does this make sense?

E.g., main comp "M01" has subcomps "S01a", "S01b", etc. The colors of shapes in S01a etc are based on a color picker in M01.
I want to duplicate M01 to M02, change the color picker value, and have S01a S01b pick up the new color value, without having to duplicate them to S02a, S02b, etc in order to reference M02.

I'm using True Comp Duplicator, which is a lifesave with its 'update expressions' option ... but my project is over 50MB now, with hundreds of comps, and is unwieldly.

(I cannot use a 'change color' effect in the main comp; there are transparencies &amp; blend modes that would get messed up.)
You can link properties in different compositions by using an expression like this one.

comp("Comp Name").layer("Layer Name")("Property e.g. Transform")("SubProperty e.g. Position")


If the property is more nested you just add another ("sub property") until you reach the property you need, just as you would click through the drop down menus.

Also helpful: VideoCopilot recently released a great free script specializing in pre-comping 3D layers in exactly that way. http://www.videocopilot.net/blog/2014/08/free-script-3d-pre-compose-tutorial/

Edit: Regarding the clarification in the comments about using relative selectors for comps.
Unfortunately not possible per se. You can do it with layers by specifying the index number but a comp doesn't really have a unique parent which makes this rather hard to have a generic selector for comps. If you have a unique procedural naming based on your comp "depth" this might be possible with some advanced expression or maybe script but if you just named them "my cool comp" and "my other cool" comp you can't really make a script for that.