Skip to content

Instantly share code, notes, and snippets.

@monsieuroeuf
Created September 8, 2014 02:32
Show Gist options
  • Save monsieuroeuf/8c39d2f74248a321f6b5 to your computer and use it in GitHub Desktop.
Save monsieuroeuf/8c39d2f74248a321f6b5 to your computer and use it in GitHub Desktop.
Premiere Pro: lists all the markers' times in seconds, for the active sequence.
#target premierepro-8.0
// 2014-09-08 Ian Haigh (ianhaigh.com)
// Simply lists all the markers' times in seconds, for the active sequence.
m = app.project.activeSequence.markers;
var first = m.getFirstMarker();
var current = first;
var times = [];
for (var c=0; c < m.numMarkers; c++) {
times.push(current.start.seconds);
current = m.getNextMarker(current);
}
$.writeln(times);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment