Skip to main content
Participant
January 24, 2023
Answered

How to change text to small caps via script (jsx)?

  • January 24, 2023
  • 1 reply
  • 323 views

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!
This topic has been closed for replies.
Correct answer Mylenium

No, faux text styles cannot be set via script. You have to use an actual SC font and reference that if it really matters.

 

Mylenium

1 reply

Mylenium
MyleniumCorrect answer
Legend
January 24, 2023

No, faux text styles cannot be set via script. You have to use an actual SC font and reference that if it really matters.

 

Mylenium