For a client, I have to change the Font of text layer with a script.
I manage to change the Font itself like this:
Code: Select all
var textProp = app.project.activeItem.layer(1).property("Source Text");
var textDocument = textProp.value;
textDocument.font = "Arial";
textProp.setValue(textDocument);
But unfortunately I don't manage to change the style
With the line below, After Effects return fontSyle is in ReadOnly :(
Code: Select all
textDocument.fontStyle = "Bold";
Or maybe simply another way to do this?
Thanks by advance,
Aurélien