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

How do you script Allcaps to be turned off?

New Here ,
Feb 11, 2025 Feb 11, 2025

I am currently writing. a script to create captions in After Effects and it keeps bringing every line in with allcaps flipped on. What line of code do I need to add to ensure allcaps is turned off? Thanks in advance. 

TOPICS
Scripting
273
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

Community Expert , Feb 11, 2025 Feb 11, 2025

This example will create a text layer and set it to normal caps:

var myComp = app.project.activeItem;
var myTextLayer = myComp.layers.addText("Text");
var mySourceText = myTextLayer.property("ADBE Text Properties").property("ADBE Text Document");
var myTextDoc = mySourceText.value;
myTextDoc.fontCapsOption = FontCapsOption.FONT_NORMAL_CAPS;
mySourceText.setValue(myTextDoc);
Translate
Community Expert ,
Feb 11, 2025 Feb 11, 2025

This example will create a text layer and set it to normal caps:

var myComp = app.project.activeItem;
var myTextLayer = myComp.layers.addText("Text");
var mySourceText = myTextLayer.property("ADBE Text Properties").property("ADBE Text Document");
var myTextDoc = mySourceText.value;
myTextDoc.fontCapsOption = FontCapsOption.FONT_NORMAL_CAPS;
mySourceText.setValue(myTextDoc);
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
New Here ,
Feb 12, 2025 Feb 12, 2025
LATEST

Thank you!! Worked like a charm. 

 

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