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

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

New Here ,
Dec 02, 2022 Dec 02, 2022

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

 

 

 

 

 

TOPICS
Scripting
649
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 , Dec 02, 2022 Dec 02, 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/

Translate
Community Expert ,
Dec 02, 2022 Dec 02, 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
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 ,
Dec 02, 2022 Dec 02, 2022
LATEST

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.

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