-
setJustification and setText
Hi all, hitting a wall with something that seems simple. I’m using the new setJustification method in expressions, and can’t get the following to work. My intention is simply to set the text dynamically and set the justification. Working in the sourceText property of a text layer. I’ve tried a number of fixes and arrangements, but the problem is always the same: the order dictates how it is carried out, and it’s always the line that comes second that affects the layer. I can switch the lines, but it’s only the second one that works.
thisComp.layer("first").text.sourceText;</p><p>style.setJustification("alignRight");
I’ve tried a few fixes – setting the text layer to paragraph, using “newStyle” (though I’m not confident I’ve tried that correctly.) Even trying to set the text without referencing another layer just using quotation marks, and the issue is still the same.
Adobe After Effects 2025.1.0, Macbook Pro M1 32GB Sonoma 14.7.1