Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


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

213

Likes

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

Likes

Translate

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

Copy link to clipboard

Copied

Likes

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!

Likes

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;

Likes

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;

Likes

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;
 
 

Likes

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...

 

 

Likes

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