boxText parameters not updating
Hello,
I have problem with changing parameters for boxText.
I can manipulate Position and BoxTextSize, but fontSize doesn't change no matter what I write.
At the end of the script I put alert box, and when I check textDocument fontSize it gives me correct value,
but in Comp window, boxText is always the same size.
Here is code
(my text string is in variable s1Atxt1OK)
var ttPlac = app.project.item(5).layers.addBoxText([1050, 100]);
ttPlac.property("ADBE Transform Group").property("ADBE Position").setValue([880, 800]);
var textProp = ttPlac.property("Source Text");
var textDocument = textProp.value;
textDocument.resetCharStyle();
textDocument.resetParagraphStyle();
textDocument.fontSize = 100;
textDocument.fillColor = [1, 1, 1];
textDocument.font = "HelveticaNeueLTPro-BdCn";
textDocument.applyStroke = false;
textDocument.applyFill = true;
textDocument.text = s1Atxt1OK;
textDocument.justification = ParagraphJustification.LEFT_JUSTIFY;
textDocument.tracking = -10;
textProp.setValue(textDocument);
// checking with alert that font size is updated (because in comp window it doesn't change)
var box = textDocument.fontSize;
alert(box);
Thanks,
Goran
