-
Set font of paragraph text layer?
Been bangin’ my head against this one and finally decided to ask the forum. I’ve created a script that creates a certain sized paragraph text box. I also want to control the font and its size. How do I do that? I can’t seem to figure out how to call the font properties for the text box. Any suggestions?
Here’s my current script:
{
var proj = app.project;
var theComposition = proj.activeItem;
var paraText = theComposition.layers.addBoxText([910, 140], "ParagraphText");
var theTextLayer = theComposition.layers[1];
var dynamText = theTextLayer.property("Text").property("Source Text").expression = "/*Path of source text file*/ n $.evalFile('/PATH/OF/TEXT/FILE/text.txt') var1+var2+var3;dynamText;
}