Skip to main content
C5R5
Known Participant
November 20, 2020
Answered

Markers API Broken again? Premiere Pro CC2020, 14.6

  • November 20, 2020
  • 1 reply
  • 740 views

When creating markers by ExtendScript, marker.end appears to be broken. It cannot be set.

 

marker.start however, seems to be fine. So atleast the script is working half the time.

 

So, what happened?

 

 

 

This topic has been closed for replies.

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
November 23, 2020
C5R5
C5R5Author
Known Participant
December 1, 2020

hmm, could I be doing anything wrong with my code? This is what I'm using (copied, pasted and adapted from the example you linked):

 

var newCommentMarker = markers.createMarker(currentClip.start.seconds); // currentClip is a "TrackItem".
var tempTime.seconds= currentClip.end.seconds;
newCommentMarker.end.ticks= tempTime.ticks;
 
The end result is a marker with 00:00 duration. I'm expecting a marker with a duration that matches the clip. Any suggestions? Thanks!
Bruce Bullis
Legend
December 1, 2020

Thanks Bruce. Tried that, and a Run Script Error results: "Bad argument end".

 

Comment out your suggestion out, and it runs:

 

var newCommentMarker = markers.createMarker(currentClip.start.seconds);
//newCommentMarker.end = currentClip.end;
 
 

Bizarre, as they're both Times...