Skip to main content
Participant
Jul 3, 2025 12:29 PM UTC
Question

How can I use AE SDK to set the alignment of text in a text layer? Is there any examples?

I am trying to use AE SDK to set the text style of the text in text layer, but I cannot find the relevant API; AEGP_SetText looks similar, but I'm not sure how to use it and there's no relevant description in the documentation


4 replies

Community Expert
Jul 3, 2025 2:07 PM UTC

I think it can only be done via javascript.

you can use AEGP_ExecuteScript() for that.

Translate
Participant
Jul 4, 2025 3:09 AM UTC

Thank you for your reply. I can indeed obtain the information I need through JavaScript. But I am still very puzzled why AE SDK does not provide a corresponding API for such a simple and commonly used requirement?

Translate
James Whiffin
Legend
Jul 4, 2025 5:40 AM UTC

There's a lot of things that javascript can do that the c++ SDK can't, especially relating to text :'(

Translate