If a text layer contains multiple justifications on different layers, editing text using character range can cause justification to incorrectly change.
Steps to reproduce:
1. Open justifyText.aep and have Comp 1 open and active.
2. File > Run Script....run justifyText script.
Script output:
"top line justify = 7413 next line was = 7414
changing text to = *1234
*
top line justify now = 7414 next line now = 7414"
While the (0,5) character range covers a single justification setting across the top line of text,
changing the text (still 4 characters plus return) causes it to adopt the justification of the next line.
3. Undo the text change or Revert Project, comment out line 10 of script and try again with lines 11 then 12
Script output:
"top line justify = 7413 next line was = 7414
changing text to = *234
*
top line justify now = 7413 next line now = 7413"
Result: This time, the change seems to cause the second line to adopt the first line's justification.
Expected Result: Justification would remain essentially unchanged throughout.
Workaround: Keep track of the justification for the line return and next character then revert either if they change during the text edit. Lines 27-37 in script.
Apart from Kerning seemingly being broken currently, this is the only other oddity I've found with characterRange so far. Generally it's working very well.
I could see that if AE only allows one justification per line, something that might seem to affect the line return could cause an accidental re-evaluation of the justification across the two lines in question?
System info
Application: After Effects (Beta) v24.5.0.27
OS: macOS v12.6.8, RAM: 64.00 GB GB, CPUs (logical): 12