Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

New Here ,
Jul 03, 2025 Jul 03, 2025

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


TOPICS
How to , SDK
166
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2025 Jul 03, 2025

I think it can only be done via javascript.

you can use AEGP_ExecuteScript() for that.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2025 Jul 03, 2025

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 03, 2025 Jul 03, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 04, 2025 Jul 04, 2025
LATEST

the c++ and javascript apis mostly overlap, but there are some things the one can do and the other can't. (both ways)

luckily, when it's stuff that's done "once off" such as creating ketfraems, and not something done "per frame redner", then the imacpt in performance is negligible.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines