-
Using source text to link two text layers, maintaining font weight
Hi there,
I’ve got a comp with 3 text layers, Text 1 & 2 are separated elements of the same sentence, and Text 3 is the sentence in full (broken down to animated elements). I’ve used the following expression to write Text 3:
a=thisComp.layer(“TEXT 1 :”).text.sourceText;
b=thisComp.layer(“TEXT 2″).text.sourceText;text.sourceText=a+” “+b
It works a treat, however, TEXT 2 needs to be bold, with TEXT 1 being regular. Is there a way I can append the following to define the font styles of a and b…
a = style.setFont(“HalisR-Medium”)
b = style.setFont(“HalisR-Black”)I’m new to expressions so any advice is hugely appreciated!
Thanks,
TJ