ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Get selected font from character panel

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mansouri Walid
Get selected font from character panel
on Jul 11, 2018 at 3:37:34 pm

As the titles says how can i get the selected font name from the character panel (script).

Best regards


Return to posts index

Dan Ebberts
Re: Get selected font from character panel
on Jul 11, 2018 at 4:27:50 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



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]