Skip to main content
Participant
February 13, 2020
Question

【Script】findMenuCommandId

  • February 13, 2020
  • 1 reply
  • 782 views

オリジナルのスクリプトを制作し仕事で使用しています。

After Effects CC2020において、日本語版でfindMenuCommandIdを実行すると0が返ってきてしまい、

findMenuCommandIdを使用したスクリプトが使用できません。

原因と対処方を教えてほしいです。

ちなみに英語版ではIDが正しく返されました。

This topic has been closed for replies.

1 reply

Tomas Sinkunas
Legend
February 13, 2020

What ID was it?

flag_tAuthor
Participant
February 21, 2020

I have tried all ID. Everything returns zero.

I want to restrict who can use my script. For that I use the logout ID in the help menu. I'm coding so that users returning zero are not available.

 

app.executeCommand(ID) works fine.

Tomas Sinkunas
Legend
February 21, 2020

Agh, I see.

Dont use app.findMenuCommandId(), as it depends on language, instead use app.executeCommand(ID) - this will work on all AE languages.