Combining Expression for setting SourceText.Style and SourceText from Different Sources
I have a comp with a text layer that pulls the font size from an Expression Control Slider on a different layer using this expression:
text.sourceText.style
.setAutoLeading(true)
.setFontSize(thisComp.layer("control").effect("Font Size")("Slider"))I want to also get the source text for this layer from a different text layer in a different comp. Using this expression on its own works:
comp("six-pillars-callout-02").layer("callout-text").text.sourceText;However, if I just add the above expression to the sourceText.style expression as below, only the style changes are implemented:
comp("six-pillars-callout-02").layer("callout-text").text.sourceText;
text.sourceText.style
.setAutoLeading(true)
.setFontSize(thisComp.layer("control").effect("Font Size")("Slider"))How do I combine these expessions into a single statement so I can pull the sourceText from a different layer and set the sytle attributes?
