Skip to main content
Participant
December 2, 2022
Answered

Is there any way to find the command-id for scripting?

  • December 2, 2022
  • 1 reply
  • 652 views

Hello.

 

app.executeCommand(command-id number);

I'm using the code above.

 

Is there any way to find the command-id number value of the following function?


1. Show only selected properties and groups (Functions that you can press the 'ss' key)
2. Characer Panel - Faux Bold / Faux Italic

 

I used a translator because I couldn't speak English, but I would appreciate it if you could understand the meaning and reply

 

 

 

 

 

This topic has been closed for replies.
Correct answer Mathias Moehl

As far as I know, app.executeCommand can only execute menu entries of Ae's main menu. You can find IDs for those with

app.findMenuCommandId(exactNameOfCommandInMenuGoesHere)

 

If you want to do more experiments to find workarounds: BtnHook found a way to execute buttons of other scripts in Ae. Maybe (but really not sure) there is a similar way to do it for other panels?
https://aescripts.com/btnhook/

1 reply

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
December 2, 2022

As far as I know, app.executeCommand can only execute menu entries of Ae's main menu. You can find IDs for those with

app.findMenuCommandId(exactNameOfCommandInMenuGoesHere)

 

If you want to do more experiments to find workarounds: BtnHook found a way to execute buttons of other scripts in Ae. Maybe (but really not sure) there is a similar way to do it for other panels?
https://aescripts.com/btnhook/

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
SI5C94Author
Participant
December 2, 2022

Thank you for your answer.

Reveal Properties with Keyframes
Reveal Properties with Animation
Reveal All Modified Properties

I realized that the above functions are on the animator tab.
I will study the script that you told me. Thank you.