Hello,
I have a script in which I am adding 2 text layers, and on one of them I want to justification to be right, and the other left. I must be missing something really simple because everything I try yields them to both have the same justification. Help appreciated!
(some vars aren't in here because they are part of other code, but they are all working. The problem is just the justification)
var curProj = app.project; var comp = curProj.items.addComp("My Comp", width, height, 1, time, rate); var textLeft = comp.layers.addText(leftSide); var textProp = textLeft.property("Source Text"); var textSettings = textProp.value; textSettings.fillColor = [r, g, b]; textSettings.justification = ParagraphJustification.RIGHT_JUSTIFY; textSettings.fontSize = 72; textSettings.font = realFontValues[fontInput.selection.index]; textProp.setValue(textSettings); var textRight = comp.layers.addText(rightSide); var textPropTwo = textRight.property("Source Text"); var documentSettings = textPropTwo.value; documentSettings.fillColor = [r, g, b]; documentSettings.justification = ParagraphJustification.LEFT_JUSTIFY; documentSettings.fontSize = 72; documentSettings.font = realFontValues[fontInput.selection.index]; textPropTwo.setValue(documentSettings);
-Nate