Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
2

ExtendScript: Split clip using insertClip method?

Community Beginner ,
Feb 19, 2024 Feb 19, 2024

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!

TOPICS
Editing , How to , SDK
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 19, 2024 Feb 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.

Translate
Adobe Employee ,
Feb 19, 2024 Feb 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 19, 2024 Feb 19, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 19, 2024 Feb 19, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 19, 2024 Feb 19, 2024

Yes, but recreate the trackItem how??? Is the only way by using the sequence clone method?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 19, 2024 Feb 19, 2024

>...recreate the trackItem how??? 

You would create a new trackItem using everything you know (source projectItem, speed changes, footage reinterpretation) about the trackItem you're "cutting" (truncating).  


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Feb 19, 2024 Feb 19, 2024

Oh I see, thanks. Is there an example of creating a trackItem anywhere?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 19, 2024 Feb 19, 2024
LATEST
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines