I'm trying to create a textbox via scripting with specific font, fontsize, text, etc... The code below is working as it is creating the textbox with the correct text string but it does omit fontSize and font, they do not change although the alert dialog show correct values.
What am I missing here? I feel it's just in front of my face but I can't figure it out.
Thanks in advance.
var comp = app.project.activeItem;
var title = comp.layers.addBoxText([250,250],"")
title_prop = title.property("ADBE Text Properties").property("ADBE Text Document");
Apparently you need to set an initial text string value for the addBoxText options, it can't be null. So I resolved the issue by changing "" with "This is a test" or whatever string you want when creating the textBox.
var title = comp.layers.addBoxText([250,250], "This is a test");