Skip to main content
Participant
February 19, 2024
Answered

ExtendScript: Split clip using insertClip method?

  • February 19, 2024
  • 1 reply
  • 1380 views

Hey everyone. This seems like a relatively simple ask but how can I split a clip using ExtendScript. Basically exact same as using Ctrl + K but instead using ExtendScript to do it? I've beeen searching everywhere but I only found insertClip function, but how do I split a clip? Do I need to duplicate the trackitem first somehow? I'm lost on this one. Thanks for any help!

This topic has been closed for replies.
Correct answer Bruce Bullis

There's no such thing as a 'cut', in the API. 

Instead, you would adjust the duration of the existing trackItem, then insert a new trackItem, representing the remaining portion of the original trackItem.

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
February 19, 2024

There's no such thing as a 'cut', in the API. 

Instead, you would adjust the duration of the existing trackItem, then insert a new trackItem, representing the remaining portion of the original trackItem.

drwbnsAuthor
Participant
February 19, 2024

Ok I get that, but how do I duplicate the original trackItem?

Bruce Bullis
Legend
February 19, 2024

You'd need to recreate it, as best you can. 
[Admittedly, this is sub-optimal.]