Hi All,
I am adding a marker in clip using below code:
var markers = app.project.rootItem.children[0].getMarkers(); var new_marker = markers.createMarker(2.075469); new_marker.name = "Test marker"; new_marker.comments = "Test comment"; new_marker.end = 2.075469;
Now I need to check that the marker already exists or not at "2.075469". I am using below code to compare the start and end seconds.
var markers = app.project.rootItem.children[0].getMarkers(); var start = markers.getFirstMarker().start.seconds; var end = markers.getFirstMarker().end.seconds; var secondsToCompare = 2.075469; if (secondsToCompare == start && secondsToCompare == end) { // Marker is already exists so do nothing } else { // Add new marker }
However value of both "start" and "end" is "2.08" which is not same as "2.075469".
Why premiere pro doesn't return exact value? Can anyone suggest how to achieve this?
Premiere Pro Version: 9.0.0
Extension Type: Panel
Thanks & Regards,
Meet Tank