Set duration of marker with PPro CEP
I'm working on a CEP extension and I need to add sequence markers. I am able to create markers, but I can't make them have a duration. I've tried using .start and .end, both with setting ticks and seconds. Here's my code right now, everything works except the marker still being a single point:
openDocument : function(timestamp, colorIndex) {
var activeSequence = app.project.activeSequence;
if (activeSequence) {
var markers = activeSequence.markers;
var tempTime = new Time(); // Use a local time object to take care of all the tick math
var newCommentMarker = markers.createMarker(12.345);
newCommentMarker.name = 'Marker created by PProPanel.';
newCommentMarker.comments = 'Here are some comments, inserted by PProPanel.';
tempTime.seconds = 15.6789;
newCommentMarker.end.ticks = tempTime.ticks
tempTime.seconds = 11.6789;
newCommentMarker.start.ticks = tempTime.ticks
newCommentMarker.setColorByIndex(colorIndex);
}
}
Does anyone know how to get this to work? I want this

and not this.

Thanks in advance!
