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:
I’ve tried a few scripts, but none seem to work correctly. Here are the issues I’m facing:
> 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.
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
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
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.
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.
Copy link to clipboard
Copied
The PProPanel sample (to which I linked above) is the best source of example code.