Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Can script read Font’s Weight Attribute ? [ Bold / Italic /… ]

  • Scott Mcgee

    January 31, 2018 at 8:32 am

    Dan 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 pm

    Well, He is The best!
    Thank you, Scott!
    Thank you, Dan, for sharing all that essential knowledge and wisdom(||)

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy