Skip to main content
Participant
May 24, 2025
Answered

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

  • May 24, 2025
  • 2 replies
  • 415 views

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

Correct answer shachar carmi

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.

2 replies

Inspiring
May 25, 2025
tj2rawAuthor
Participant
May 26, 2025

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!

shachar carmiCommunity ExpertCorrect answer
Community Expert
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.

tj2rawAuthor
Participant
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!