Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get selected font from character panel

  • Dan Ebberts

    July 11, 2018 at 4:27 pm

    The only way I can think of would be to add a temporary text layer to a comp, harvest the font name (which will be the one in the Character panel), and delete the layer:

    var myComp = app.project.activeItem;
    var myLayer = myComp.layers.addText(“”);
    var myText = myLayer.property(“ADBE Text Properties”).property(“ADBE Text Document”).value;
    alert(myText.font);
    myLayer.remove();

    Dan

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