How to change Paragraph without changing its external position.
If I change the Left align text to Center text, it changes the apparent position of the text.
Is there any way to change the Paragraph without changing the apparent position?

If I change the Left align text to Center text, it changes the apparent position of the text.
Is there any way to change the Paragraph without changing the apparent position?

Rick Gerard-san's suggestion was appreciated, but since I wanted to apply it with static values, I decided to avoid Expression and develop a simple script.
The source code is provided below.
app.beginUndoGroup("Keep Position Center Align");
(function () {
var comp = app.project.activeItem;
if (!(comp instanceof CompItem)) return;
var loop = comp.selectedLayers.length;
for (var i = 0; i < loop; ++i) {
var layer = comp.selectedLayers[i];
if (!(layer instanceof TextLayer)) continue;
var prop = layer.sourceText;
var doc = prop.value;
doc.justification = ParagraphJustification.CENTER_JUSTIFY;
layer.sourceText.setValue(doc);
var rect = layer.sourceRectAtTime(comp.time, false);
var x = rect.left + rect.width / 2;
var y = rect.top + rect.height / 2;
layer.anchorPoint.setValue([x, y]);
}
})();
app.endUndoGroup();I hope in the future I can do something similar with ctrl+click or shift+click.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.