• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Markers API Broken again? Premiere Pro CC2020, 14.6

Explorer ,
Nov 20, 2020 Nov 20, 2020

Copy link to clipboard

Copied

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?

 

 

 

TOPICS
SDK

Views

414

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Nov 23, 2020 Nov 23, 2020

Votes

Translate

Translate
Adobe Employee ,
Nov 23, 2020 Nov 23, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

sorry, this is the code I'm currently using (in the post above I had inserted a typo not present in my actual code)

 

var tempTime = new Time();

var newCommentMarker = markers.createMarker(currentClip.start.seconds); // currentClip is a "TrackItem".
tempTime.seconds = currentClip.end.seconds;
newCommentMarker.end.ticks= tempTime.ticks;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

Does this work?

newCommentMarker.end = currentClip.end;

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

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;
 
 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 01, 2020 Dec 01, 2020

Copy link to clipboard

Copied

LATEST

Bizarre, as they're both Times...

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines