Skip to main content
Participant
January 12, 2016
Answered

Using reflection to discover method parameters in Premiere?

  • January 12, 2016
  • 2 replies
  • 1034 views

Hi,

I am trying to use the ExtendScript Toolkit to discover what APIs Premiere supports.

I can use reflection to discover both properties and methods.

However, when finding a method, I cannot see how to determine what parameters it takes (unless its used in the PProPanel example, there is no documentation).

For example: I'd like to set In & Out points in the source clip window.

I can see: qe.source.clip.setInPoint is a function, but how do you call it?

I'd also like to set the current position in the source clip window.

I can't see how to do this at all ???

Any clues?

Cheers,

James.

Ps I am using 'ticks' when calling app.project.activeSequence.setPlayerPosition. Any definition of num ticks per second?

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

The QE DOM remains officially unsupported.

Both 'timecode string' and 'decimal value' work, for setInPoint():

qe.source.clip.setInPoint("1.23");

qe.source.clip.setInPoint("00;00;04;28");

There are 254016000000 ticks per second.

How to set position:

qe.source.player.startScrubbing();

qe.source.player.scrubTo("00;00;01;23");

qe.source.player.endScrubbing();

qe.source.player.play();

2 replies

Tomas B. aka Tom10
Inspiring
September 15, 2016

While it is clear how to set the value in source player for a clip - is there any chance to get the inPoint and outPoint values?

There is an option to clearInPoint and clearOutPoint values - I assume there should be a way to get them too. However, QE does not have methods for this task execution.

I would use these values in order to create PNG's with a timestamps from the original footage file.

Would appreciate any help!

Thanks!

Bruce Bullis
Legend
September 15, 2016

is there any chance to get the inPoint and outPoint values?

Sadly, no.

As you've probably seen, PProPanel exports .png files, from the Program monitor.

Tomas B. aka Tom10
Inspiring
September 15, 2016

Thanks for such a speedy turnaround. I was dealing with this issue for a few hours already, and luckily, decided to come here

inPoints and outPoints are being set for clip object.

There is an option to retrieve CTI for player object, with getPosition(). Maybe it could be accessed through the player, instead of the clip object? Or inPoint and outPoint are only valid for the clip?

Thank you!

Bruce Bullis
Bruce BullisCorrect answer
Legend
January 12, 2016

The QE DOM remains officially unsupported.

Both 'timecode string' and 'decimal value' work, for setInPoint():

qe.source.clip.setInPoint("1.23");

qe.source.clip.setInPoint("00;00;04;28");

There are 254016000000 ticks per second.

How to set position:

qe.source.player.startScrubbing();

qe.source.player.scrubTo("00;00;01;23");

qe.source.player.endScrubbing();

qe.source.player.play();

Participant
January 12, 2016

Works a treat - thanks! J.