Make native commands like Merge Clips scriptable in the UXP API
Hi all, I'm trying to build a UXP panel that helps batch-process making merged clips from a full sequence of synched audio, and I've hit some walls that make this kind of workflow much harder than it needs to be. I have tried to tee it up as best I can by making the steps as few as possible, but cannot finish it out because of some limitations in what Adobe makes available to be scripted:
1. Native commands aren't scriptable. Commands like Merge Clips and other “right click” actions have no equivalent in the DOM API, and there's no generic way to invoke a menu/context-menu command from a plugin either. This means a plugin can prepare everything perfectly (select the right clips, know exactly what should happen next) but still can't finish the job—the user has to manually right-click and choose the command every single time. Every work around I look for runs into this...I understand why this could be an issue to allow access here, but I should be able to limit the parameters safely but don’t have the option.
2. Plugin commands can't be bound to keyboard shortcuts. Even a plugin's own custom commands don't show up in Premiere's Keyboard Shortcuts editor to be assigned a hotkey, unlike how native commands work. This makes it hard to build even a keyboard-driven workflow around a plugin at all.
What I'd love to see:
- A scriptable way to invoke native commands like Merge Clips (ideally as an Action, consistent with the create*Action pattern already used elsewhere in the API), OR at minimum an event that fires when a command like this completes, so a plugin can react to it.
- Support for assigning keyboard shortcuts to plugin commands via the standard Keyboard Shortcuts editor, the same way native commands work today.
Either of these (even just one) would make it possible to build genuinely fast batch-editing tools instead of ones that still require a manual click-through per item. Not to jump on a negativity bandwagon, but if Adobe won’t build in simple native features like “batch merging” already synched audio, please let me do it myself...I think opening up these commands would make endlessly useful plugin builds possible and really solidify my loyalty to the program. Happy to share more detail about the specific workflow if useful. Thanks for considering it!
