Skip to main content
Participant
February 11, 2025
Answered

How do you script Allcaps to be turned off?

  • February 11, 2025
  • 1 reply
  • 313 views

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. 

Correct answer Dan Ebberts

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);

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
February 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);
JamesRhoAuthor
Participant
February 12, 2025

Thank you!! Worked like a charm.