Skip to main content
Bed30321077z973
Inspiring
February 2, 2025
Answered

Get the tracks items insert times? (+ observation about state of api)

  • February 2, 2025
  • 4 replies
  • 671 views

Hello,

I did not use the API in a long time, feel like I forgot everything. I have to say that the API doc is crazily scarce, I googled and doung the "CEP" stuff , but kept telling myself I think there is another missing file for premiere pro, till this day I am not sure where it is exaclty, I just know i landed on it again by chance here: (https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx)

It is well hidden!

Anyway I also googled this one: https://ppro-scripting.docsforadobe.dev/item/projectitem/, only to discover that 1) it is not an official guide (yet adobe refers to it sometimes here), and 2) it changed aesthetics (it used to be like this one: https://extendscript.docsforadobe.dev/file-system-access/index.html, with long list on the left).

 

Back to the question, can you tell me how to get the "insert times" of each item on a given track time please?

 

I have old code where I took an item then choose where to insert it. 

But what about the opposite? Meaning I will take an item from the track (including all cut clip, for example a clip from one file I cut into 3 parts), and then get the info about their starting times? (all of them within one track if possible)

 

I need this.
Thanks.

Correct answer Bruce Bullis

the API doc is crazily scarce...It is well hidden!

Sorry it was tough to find; the docs have been in the same place for many years, referenced from dozens of SDK Forum posts.

>I googled this one...only to discover that 1) it is not an official guide...

That's incorrect. Despite not being hosted on adobe.com, those docs are definitely 100% the official guide, and always have been.

>can you tell me how to get the "insert times" of each item on a given track time please?

If you want the source media time from which the trackItem begins:

 

 

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackiteminpoint

 

...or the sequence time at which the trackItem is placed:

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackitemstart

> But what about the opposite?

Based on your description, that would be the in point (the first case, above):

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackiteminpoint

4 replies

Bruce Bullis
Bruce BullisCorrect answer
Legend
February 3, 2025

the API doc is crazily scarce...It is well hidden!

Sorry it was tough to find; the docs have been in the same place for many years, referenced from dozens of SDK Forum posts.

>I googled this one...only to discover that 1) it is not an official guide...

That's incorrect. Despite not being hosted on adobe.com, those docs are definitely 100% the official guide, and always have been.

>can you tell me how to get the "insert times" of each item on a given track time please?

If you want the source media time from which the trackItem begins:

 

 

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackiteminpoint

 

...or the sequence time at which the trackItem is placed:

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackitemstart

> But what about the opposite?

Based on your description, that would be the in point (the first case, above):

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackiteminpoint

Bed30321077z973
Inspiring
February 3, 2025

Oh I see my bad, the mention of:

- a community guide docs

- This project is just for educational purpose only (usually what youtubers write when they want to protect themselves from copyright strike)

here:

 

Made it look like a "community" project rather than an official project. Somehow.

 

quote


>can you tell me how to get the "insert times" of each item on a given track time please?

If you want the source media time from which the trackItem begins:

 

 

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackiteminpoint

 

...or the sequence time at which the trackItem is placed:

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackitemstart

> But what about the opposite?

Based on your description, that would be the in point (the first case, above):

https://ppro-scripting.docsforadobe.dev/item/trackitem/#trackiteminpoint


By @Bruce Bullis

 

Thanks for the answer, I will actually use both. The start to know when they start and be able to do a change afterwards. and The inpoint later.

Bruce Bullis
Legend
February 3, 2025

Made it look like a "community" project rather than an official project. Somehow.

That makes sense. 

From the start, we wanted to build the docs somewhere that the community could propose changes, and improve them based on experience. [These things are impossible, for docs built and hosted on adobe.com.]


Bed30321077z973
Inspiring
February 2, 2025

Ok I guess I can use .start from track items.

Just found it, needed a little freshener for memory.