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

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

New Here ,
Jan 24, 2023 Jan 24, 2023

Copy link to clipboard

Copied

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

Views

69

Translate

Translate

Report

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

Votes

Translate

Translate
LEGEND ,
Jan 24, 2023 Jan 24, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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