-
How to change text to bold using expressions?
Hi, so I’d like to make one text layer outputting a sentence with two different font style/weight, e.g “I would like this word to be bold“.
<div>
</div><div>But I’d like to make my layer dynamic, so I can change it anytime I want. And to make the font bold I’d like to be able to use a special character to change it. Just like how we use an asterisk(*) between a word to make it bold on Whatsapp.</div><div>
</div><div>I know to make a layer dynamic I’d have to use</div><div>thisComp.layer(“inputTextLayer”).text.sourceText;</div><div>
</div><div>But to make the selected words of that input change to bold is what I’m stuck on. I thought I might be able to do it with .style or something and use .split(“*”) to command the text to change to bold etc.</div><div>
</div><div>Any ideas on how this would be achieved? Thanks!</div>