I’ve been exploring the Premiere Pro DOM Api but I cannot clearly understand anything about and I did find good resources online too.
To ripple delete trackItems inside of a sequence, you can use
sequenceEditor.createRemoveItemsAction()
, in which ripple
parameter control if this is a non-ripple delete or ripple delete.
To overwrite trackItem inside of a sequence, you can use either
sequenceEditor.createCloneTrackItemAction()
with input of trackItem or sequenceEditor.createOverwriteItemAction()
with input of projectItem to replace existing trackItem inside of timeline.
Sample panel could be helpful source for providing code examples of API usage and understanding API functionality, especially for this case the sequenceEditor.ts file.
Thanks for trying out UXP and please let us know if you are looking for a different API than those mentioned above!
I want to trim a part of the sequence. Can you help me in that.
Hi Tarunvuppala,
Thanks for your enthusiasm. We have not exposed API for trimming a trackItem yet.
I can’t predict a firm date for it, but reaching parity between CEP and UXP is a priority for us.
Thanks for your question. This is the correct space to watch for updates.
-Dan
Okay.
But is that possible in CEP or extendscript as there are other extensions have implemented that feature(AutoPod), so how can I also achieve it.
Thanks for the help!
Sure, in CEP it’s possible; you’d accomplish this by changing the start or end time (or both) of the trackItem (“clip”) to a new ticktime.
Have a look here:
You could also get the CTI position, and use that for your start or end time of the trackItem (kind of like how you’d use the keyboard “q” or “w” to trim to playhead):
And to state it again for everybody reading; CEP is going away. We don’t have a firm end date, but probably within a year. Although, even once the UXP API support ships, CEP will remain for at least another year following that. Take this into consideration if you’re making a new panel.
-Dan