Answered
How to change text to small caps via script (jsx)?
I'm trying to generate some text on a video via a .JSX script. So far, I've been able to change the font properties via script like so:
var textProp = layer.property("Source Text");
var textDoc = textProp.value;
textDoc.fillColor = [1, 0, 0];
textDoc.fontSize = [50];
What I'd like to do is be able to change the font to small caps as well. The documentation says that the small caps field is read-only, so I can't modify it with
textDoc.smallCaps = true
for example. Is there another way I can do this via script? I'd like to not use the editor to change this value if possible.
Thanks!
