Skip to main content
snowballstudios
Participant
April 20, 2015
Answered

ExtendScript in PPro : Clip-names

  • April 20, 2015
  • 2 replies
  • 1139 views

Using ExtendScript, I am trying to access the clip-names of a track, and I can't figure out how to do this.

Here is what I am trying:

app.project.activeSequence.videoTracks[0].clips[0]

Result: [object TrackItem]

app.project.activeSequence.videoTracks[0].clips[0].name

Result: undefined

app.project.activeSequence.videoTracks[0].clips[0].reflect.properties

Result: duration,start,end,type,mediaType,__proto__

app.project.activeSequence.videoTracks[0].clips[0].__proto__.reflect.properties

Result: __proto__,__count__,__class__,reflect

app.project.activeSequence.videoTracks[0].clips[0].__proto__.__proto__.reflect.properties

app.project.activeSequence.videoTracks[0].clips[0].reflect.methods

Result: bind,unbind,setTimeout

...

What am I missing?

The context is:

We have a process in the studio, in which we use a track with clips representing the shot-names and their duration on the timeline.

We use this information later to insert the duration of the shots to our pipeline's database, as well as extract audio files for each shot, to be inserted to 3dsmax for lip-sync purposes.

Our current process involves exporting an EDL and then processing it externally.

This has some issues we want to avoid, so I want to have this process happen within a custom-tool inside PPro.

This topic has been closed for replies.
Correct answer Bruce Bullis

There's no supported API that will provide those clip names, today.

You could save out the FCP XML for that sequence, and parse that.

Please write me directly [ b b b at adobe dot com], with an overview of what you'd like to accomplish, and I can provide better guidance.

2 replies

sberic
Legend
January 11, 2018

As of Premiere Pro CC 2018 (v12.0.0) this is doable! See some simple example code here.

Bruce Bullis
Bruce BullisCorrect answer
Legend
April 20, 2015

There's no supported API that will provide those clip names, today.

You could save out the FCP XML for that sequence, and parse that.

Please write me directly [ b b b at adobe dot com], with an overview of what you'd like to accomplish, and I can provide better guidance.