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

Help Needed: ExtendScript to Cut Clips at Specific Timestamps

New Here ,
Jan 23, 2025 Jan 23, 2025

Copy link to clipboard

Copied

Hi everyone,

I'm trying to write an ExtendScript to automate cutting clips in Premiere Pro at specific timestamps. My goal is to:

  1. Use a script to cut the video clips on Video Track 0 at multiple timestamps (e.g., 00:00:05:00 to 00:00:06:10 , 00:00:10:00 to 00:00:12:10, etc.).
  2. Ensure it adheres to ES2 standards (no modern JS features).
  3. Follow the official Premiere Pro API guidelines without using AI tools or unofficial APIs.

Problem:

I’ve tried a few scripts, but none seem to work correctly. Here are the issues I’m facing:

  • The script doesn’t cut the clips at the specified timestamps.
  • It seems like the split() method isn’t behaving as expected.
  • I’m not sure if I’m calculating the timecode-to-ticks conversion properly.

    Can anyone please create and share the code for my use case here? It will be beneficial. Thanks in Advance.
TOPICS
SDK

Views

120

Translate

Translate

Report

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 , Jan 24, 2025 Jan 24, 2025

> It seems like the split() method isn’t behaving as expected.

 

There is no split method.

You could truncate (change the end point) of the earlier trackItem, and insert a new trackItem (based on the same projectItem) at the end of the earlier trackItem. 

I’m not sure if I’m calculating the timecode-to-ticks conversion properly.

A Time() object will perform the conversion for you; see PProPanel. There are 254016000000 ticks/second.

Votes

Translate

Translate

correct answers 1 Pinned Reply

Adobe Employee , Jan 23, 2025 Jan 23, 2025

HI @ALSHEFAN_A2162,

Thanks for the note and welcome to the forum. I'm Kevin from Adobe Support, a moderator here. I appreciate the information you gave. Hopefully, an Adobe Expert or developer will respond shortly. Take care.

 

Thanks,
Kevin

 

Votes

Translate

Translate
Adobe Employee ,
Jan 23, 2025 Jan 23, 2025

Copy link to clipboard

Copied

HI @ALSHEFAN_A2162,

Thanks for the note and welcome to the forum. I'm Kevin from Adobe Support, a moderator here. I appreciate the information you gave. Hopefully, an Adobe Expert or developer will respond shortly. Take care.

 

Thanks,
Kevin

 

Kevin Monahan - Sr. Community & Engagement Strategist – Pro Video and Audio

Votes

Translate

Translate

Report

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 ,
Jan 24, 2025 Jan 24, 2025

Copy link to clipboard

Copied

> It seems like the split() method isn’t behaving as expected.

 

There is no split method.

You could truncate (change the end point) of the earlier trackItem, and insert a new trackItem (based on the same projectItem) at the end of the earlier trackItem. 

I’m not sure if I’m calculating the timecode-to-ticks conversion properly.

A Time() object will perform the conversion for you; see PProPanel. There are 254016000000 ticks/second.

Votes

Translate

Translate

Report

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
New Here ,
Jan 26, 2025 Jan 26, 2025

Copy link to clipboard

Copied

Hi @Bruce Bullis ,

Could you provide me with a sample or example code? It would be very helpful. I have tried all possibilities, but nothing has worked for me.

Votes

Translate

Translate

Report

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 ,
Jan 26, 2025 Jan 26, 2025

Copy link to clipboard

Copied

LATEST

The PProPanel sample (to which I linked above) is the best source of example code.

Votes

Translate

Translate

Report

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