Skip to main content
brandonb96942845
Inspiring
February 22, 2024
Question

Parent Text Style AND Source Text?

  • February 22, 2024
  • 1 reply
  • 184 views

Short and sweet: I'm looking to parent both the sourcetext STYLE and sourcetext VALUE between comps. I have the elements here:

 

srcLayer = comp("Basic Appearance_Social Media Lower Thirds").layer("Template 1st Line");


style = srcLayer.text.sourceText.style;
text.sourceText.style
.setText(srcLayer.text.sourceText)

 

But no matter how I do this, I can only ever get half the desired result: in this configuration, the sourceText gets parented, but not the style, and if I put the "style" line below, I get the reverse--the style gets parented but not the sourceText value.

 

I'm sure the answer is absurdly simple (as they usually are in these situations) but for the life of me I can't figure it out. Help???

This topic has been closed for replies.

1 reply

Legend
February 22, 2024

Try this:

srcLayer = comp("Basic Appearance_Social Media Lower Thirds").layer("Template 1st Line");

style = srcLayer.text.sourceText.style;
style.setText(srcLayer.text.sourceText)