Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Change fontStyle

$
0
0

Hello,

 

I am trying to change the style of a font through a script.
I manage to change the Font itself like this:

 

var textProp = app.project.activeItem.layer(1);
var textDocument = textProp.value;
textDocument.font = "Arial";
textProp.setValue(textDocument);

 

Unfortunately I don't manage to change the style;

I tried this way :

 

textDocument.fontStyle = "Bold";

ial";

 

But it seems that the fontStyle is in Read Only.

Do you need if it's possible to by-pass this issue.

Thanks by advance,

Aurélien


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>