I’m new to scripting with After Effects and I’m having troubles doing the simplest thing. I got most of my program to work just fine, however, when I used the built-in text replace function it changes my text from left aligned to center aligned. I need to set my text layer to left align again after the text it changed.
Can anyone please help me? I know this is very basic, I just can’t find anything in the scripting guide that will help.
My last resort option is to set the anchor point of the text field but I would rather just set the alignment.
I'm having difficulty understanding why it's necessary in your project to use a script do do this when you can create a text layer using the Justify Left setting, and change the text using Source Text keyframes on the text layer.
Sr. Promotion Producer
KCRG-TV (ABC) Cedar Rapids, IA
I create a text object, set it right aligned and all is well.
I then duplicate the object so that it has the same font, alignment etc., and use an expression to get the source text from the first text object. Once I do this, the new layer suddenly changes its alignment to "centered" and is uneditable!