change time of the marker key
Hi,
How can I change time of the marker key?
Hi,
How can I change time of the marker key?
Unfortunately you can't.
But you can duplicate you marker and set new time for it.
In the example below we will get first marker on the layer, create a new marker with the same parametrs but second later and remove the first one.
var comp = app.project.activeItem; // current composition
var layer = comp.selectedLayers[0]; // selected layer
var myMarkers = layer.marker;
var m = myMarkers.keyValue(1); // get first marker on the layer
var p = m.getParameters(); // object with marker's parametrs
var mTime = myMarkers.keyTime(1);// get time of the first marker
var newMarker = new MarkerValue(m.comment, m.chapter, m.url, m.frameTarget, m.cuePointName, p); // create new marker object
myMarkers.setValueAtTime(mTime+1, newMarker); // set the same marker but one second later
myMarkers.removeKey(1); // remove the original marker
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.