Copy link to clipboard
Copied
Can anyone please help me? I know this is very basic, I just can’t find anything in the scripting guide that will help.
Here is the replace function:
replaceTextInLayer(app.project.item(99).layer(8), "Original", "New")
I just want to left align this text layer.
app.project.item(99).layer(8)
Thanks in advance for your help!
Copy link to clipboard
Copied
Replacing text shouldn't affect the paragraph justification. I've never heard of the replaceTextInLayer() function. Is it possible that you inherited a script from someone and that function is defined somewhere in the code (or maybe in an include file)? In any case, control of justification came in with CS4 and you can see the details here:
http://blogs.adobe.com/toddkopriva/2008/12/after-effects-cs4-scripting-ch.html
Dan
Copy link to clipboard
Copied
Dan, thank you for your quick response! That worked for me. I'm not sure why it changes - maybe something with the animation or anchor point. Anyway, the link you sent gave me the code I was looking for. Thanks!
Matt
Find more inspiration, events, and resources on the new Adobe Community
Explore Now