Copy link to clipboard
Copied
Hello wizards
I'm being buffled by a simple expression somebody might help me with.
I am trying to .style.setFont() a text layer which sources its text from a master layer from another comp.
Now, when I use this expression all works fine
but when I source the text from another layer,
It stops sourcing the right text and shows the actaual layer text instead,
meaning I lose the capacity to link it to external text sources, which makes it useless for me.
Any idea why this might be happening and/or how to fix it?
Thanks in advance for your help fellas
Try it this way:
txt = comp("XX").layer("YY").text.sourceText;
style.setFontSize(100).setText(txt)
Copy link to clipboard
Copied
Try it this way:
txt = comp("XX").layer("YY").text.sourceText;
style.setFontSize(100).setText(txt)
Copy link to clipboard
Copied
great so i only missed teh ";"...
not sure if I feel better or worst ut thanks a lot
Copy link to clipboard
Copied
sorry ignore my previous comment. Still processing this