Activity › Forums › Adobe After Effects Expressions › Can script read Font’s Weight Attribute ? [ Bold / Italic /… ]
-
Can script read Font’s Weight Attribute ? [ Bold / Italic /… ]
Posted by Shai Benshoshan on January 30, 2018 at 7:10 pmIs there any workaround?
thank you :-}
shaiShai Benshoshan replied 8 years, 3 months ago 2 Members · 2 Replies -
2 Replies
-
Scott Mcgee
January 31, 2018 at 8:32 amDan wrote this for someone else…I can’t take credit
var myComp = app.project.activeItem;
var myTextLayer = myComp.layer(1);
var mySourceText = myTextLayer.property(“ADBE Text Properties”).property(“ADBE Text Document”);
var myTextDoc = mySourceText.value;
alert(myTextDoc.font + ” / ” + myTextDoc.fontStyle);There’ll be something somewhere to define more, but I think it’s fontSize, fontColor etc.
Hope this helps.
-
Shai Benshoshan
January 31, 2018 at 5:18 pmWell, He is The best!
Thank you, Scott!
Thank you, Dan, for sharing all that essential knowledge and wisdom(||)
Reply to this Discussion! Login or Sign Up