-
TextDocument.fontStyle does not work – any thoughts?
Hey all,
I know this is a scripting question and not an expression question but I didn’t see a scripting form.
Windows 10
After Effects 2018 v15.1.2
Font using: GothamI’m creating a UI tool that lets me change font and style of a text layer/s with the click of a button. I can access the TextDocument easy enough and it’s font property, but the fontStyle property doesn’t seem to work. I’ve checked scripting documentation and all over the web. Can’t find a solution.
Code:
TextDocument.font = "Gotham"; //This works
TextDocument.fontStyle = "bold"; //This does notNote: If I hyphenate the font name and style (“Gotham-Bold”) and push that into the font property of the text document it will work! But, only for that particular pairing and nothing else.
Any suggestions you guys have would be awesome. Thank you so much.
Ryan