Missing UXP API methods for moving or deleting audio clips programmatically

Hi,
I’m developing a UXP panel for Premiere Pro (well, ChatGPT is doing the work…) that manipulates sequence audio clips. The goal of this plugin is to keep only mono or only stereo audio clips in each track.

Currently, I can read and modify clip parameters (volume, enable/disable, etc.), but I can’t:

  1. Move an audio clip to another track programmatically
    → The existing createMoveAction() or createCloneTrackItemAction() methods either throw “Illegal Parameter type” or are unavailable for audio track items.

  2. Delete disabled clips from the sequence
    → There’s no exposed UXP equivalent of the ExtendScript TrackItem.remove() method.

So right now, I can copy a clip from a track to another, but I cannot erase the original clip. Anyone knows a work around ? Other wise, is there a way for :

  • A reliable moveToTrack(targetTrackIndex) or similar action for audio clips

  • A remove() or delete() API for TrackItem objects in UXP

You need to study the API a bit before attempting “vibe coding”. Start with the Premiere Pro UXP reference: https://developer.adobe.com/premiere-pro/uxp/ppro_reference/

Quick tip: take a look at createRemoveItemsAction(items). It’s the entry point to build the removal action.

3 Likes