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

I want to operate AEGP from jsx without creating a menu.

New Here ,
May 24, 2025 May 24, 2025

I want to operate AEGP from jsx without creating a menu.
However, it seems that jsx does not recognize the command ID unless InsertMenuCommand is used.
By using AEGP_Menu_NONE, I can use InsertMenuCommand without creating a menu.
This seemed to work. However, an alert sound plays when AE starts up.

Is this a bug in AEGP_Menu_NONE?
Is there a way to remove this alert, or an alternative solution?

My environment is as follows:
Windows 11, AE 2025

TOPICS
SDK
188
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

correct answers 1 Correct answer

Community Expert , May 24, 2025 May 24, 2025

well... i ran into the problem recently. i didn't find a way to invoke an AEGP from the javascript side directly without some aid from a C external object. (and even then it's not as clear cut and immediate as you'd image...)

simplest solution IMHO, is to leave some flag in the javasciprt global scope, and have the AEGP check for that floag on idle_hook calls. these happen 20-50 times per second, so it's not immediate and synchronous, but it gets the work done easily without any shenanigans.

Translate
Community Expert ,
May 24, 2025 May 24, 2025

well... i ran into the problem recently. i didn't find a way to invoke an AEGP from the javascript side directly without some aid from a C external object. (and even then it's not as clear cut and immediate as you'd image...)

simplest solution IMHO, is to leave some flag in the javasciprt global scope, and have the AEGP check for that floag on idle_hook calls. these happen 20-50 times per second, so it's not immediate and synchronous, but it gets the work done easily without any shenanigans.

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 ,
May 24, 2025 May 24, 2025

Ah, so there is no easy way to do it using the standard method.
However, I am glad you were able to tell me how to do it!
Thank you very much!

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 Beginner ,
May 25, 2025 May 25, 2025

I did this via C external object for me it was the most convenient option
https://community.adobe.com/t5/after-effects-discussions/issue-passing-string-from-extendscript-to-c...

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 ,
May 26, 2025 May 26, 2025
LATEST

Wow!
I gave up on C external objects because the official samples were too difficult to understand.
A working sample is very helpful for understanding the structure.
I will read the code and try to understand it.
Thank you very much!

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