Skip to main content
Participant
February 19, 2024
解決済み

ExtendScript: Split clip using insertClip method?

  • February 19, 2024
  • 返信数 1.
  • 1384 ビュー

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!

このトピックへの返信は締め切られました。
解決に役立った回答 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

Bruce Bullis
Bruce Bullis解決!
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.

drwbns作成者
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.]