Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jan 24, 2023 Jan 24, 2023

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!
TOPICS
Scripting
245
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jan 24, 2023 Jan 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

Translate
LEGEND ,
Jan 24, 2023 Jan 24, 2023
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines