Copy link to clipboard
Copied
Hi all,
Is there any API for executing menu command from CEP plugin (or ExtendScript)?
Illustrator has app.executeMenuCommand().
InDesign has app.menuActions.
I'm looking for similar API for Premiere Pro.
Thank you very much,
Naoki
No, there is no such API.
Specifically, what menu command(s) are you hoping to trigger? What's the whole workflow?
Copy link to clipboard
Copied
No, there is no such API.
Specifically, what menu command(s) are you hoping to trigger? What's the whole workflow?
Copy link to clipboard
Copied
Hi Bruce Bullis​
Thank you very much for verification.
# I can stop looking for.
The considering menu commands are most of them without dialog popping up.
The whole workflow is hardware integration. Single button click to trigger menu command.
Current code is CEP plugin and ExtendScript for supporting multiple Adobe apps.
It does not have Control Surface support. I understand that gives much more capability.
InDesign's app.menuActions() is simple, but very powerful for this usage.
// InDesign object duplicate
var ma1 = app.menuActions.itemByID(270); // copy
var ma2 = app.menuActions.itemByID(271); // paste
if(ma1.enabled) ma1.invoke();
if(ma2.enabled) ma2.invoke();
I think AfterEffects has similar.
Keyboard shortcut is an option, but it cause many issues on localized environment.
So API access is much more preferred.
Thank you,
Naoki
Copy link to clipboard
Copied
Ok...
What's the whole workflow you'd like to support?
Copy link to clipboard
Copied
Hi Bruce Bullis​
I wrote some in last comment. But it might be not clear.
Whole workflow I expected is following.
Hardware input -> OS level driver (C++) -> Adobe CEP Plugin -> ExtendScript -> Premiere Pro
Commands are single action without dialog.
Preferred not use keyboard shortcuts as localization issue.
Thank you,
Naoki
Copy link to clipboard
Copied
Yes, I realize you're trying to trigger menu items; please describe the actual workflows you'd like to support.