Expression to target child layer in pre.comp
I have a comp called "conversation" that has a pre-comp called "caption". The caption pre-comp contains a text layer ("caption-text") and a shape layer bg ("caption-bg") that acts as a speech bubble for the text and resizes depending on the text layer size.
I want to be able to access the the dimensions of "caption-bg" from the "conversation" comp, its parent. Is there an expression to look inside the contents of a pre-comp and access its layers? Maybe something like this in the "conversation" comp?
captionLength = layer("caption').subLayer("caption-bg").sourceRectAtTime().length
