Skip navigation
Currently Being Moderated

Nested comp targeting element in a layer present in the containing comp..?

Jan 12, 2012 4:27 PM

I am wanting to source the text for a Text layer with the following (as used by the pickwip)


thisComp.layer("Name of Layer")


However I would like to make a text style-template (as a comp, so I can use it in other comps) and then have custom text in those main comps which the template would use for the text in those instances.


So how do I target a layer in the main comp (maybe with a predefined name)?


Or is there a better way to do this?



  • Currently Being Moderated
    Jan 12, 2012 4:38 PM   in reply to Intergalactics

    I'm not sure if this is what you're after:


    comp("Main Comp").layer("Name of Layer").text.sourceText




    Mark as:
  • Currently Being Moderated
    Jan 12, 2012 4:50 PM   in reply to Intergalactics

    Well, an expression can't figure out what comp its own comp is nested within, if that's what you're asking. What workflow were you envisioning for connecting the template to the appropriate comp?




    Mark as:
  • Currently Being Moderated
    Jan 12, 2012 8:12 PM   in reply to Intergalactics

    The only thing I can think of is that you could probably do it with a script, where you would select the text layer with the style and text you want to propogate and the script would go through all comps looking for text layers with some identifying tag in their name and copying the text, font, size, color, and tracking from the template to the target layer.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points