Copy link to clipboard
Copied
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.
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);
Copy link to clipboard
Copied
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);
Copy link to clipboard
Copied
Thank you!! Worked like a charm.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now