Set Marker Duration
Posted: November 8th, 2016, 7:30 pm
Is it possible to set the duration of a marker via a script? It appears so via the scripting guide, but I can't actually get it to work. Does anyone have experience with this?
A basic example. A comp, with one layer, with one marker. The alert returns the correct value of the marker, but if you look at the marker on the timeline or double click it, the duration doesn't actually change.
A basic example. A comp, with one layer, with one marker. The alert returns the correct value of the marker, but if you look at the marker on the timeline or double click it, the duration doesn't actually change.
Code: Select all
var myComp = app.project.activeItem;
var marker = myComp.layer(1).Marker.keyValue(1);
marker.duration = 20;
alert(marker.duration);