Copy link to clipboard
Copied
I get this error when trying to put a marker's seconds value into setCTI (line 16)
Premiere Error:
[/Tanqueray/releases/2016.10/shared/adobe/MediaCore/MediaLayer/PlayerHost/Src/VideoPlayerProxy.cpp-666]
setCTI works when I put in a value like "20.0" but it will crash if I try to input a var number.
prevMarker : function() {
app.enableQE();
var qeActiveSequence = qe.project.getActiveSequence();
var CTITime = qeActiveSequence.CTI.secs;
var activeSequence = app.project.activeSequence;
if (activeSequence) {
var markers = activeSequence.markers;
if (markers) {
var numMarkers = markers.numMarkers;
if (numMarkers > 0) {
var current_marker = markers.getFirstMarker();
while(current_marker.start.seconds < CTITime){
current_marker = markers.getNextMarker(current_marker);
}
var previousMarker = markers.getPrevMarker(current_marker).start.seconds;
qeActiveSequence.setCTI('"'+previousMarker+'"');
}else {
alert("No Markers");
}
}
} else {
alert("Select a sequence");
}
},
What is the appropriate input for setCTI?
QE DOM is unsupported, and not recommended.
setCTI('00;34;34;21');
Copy link to clipboard
Copied
QE DOM is unsupported, and not recommended.
setCTI('00;34;34;21');
Copy link to clipboard
Copied
Thank you for your super prompt reply as always Bruce.
Sorry, I totally skipped over
sequence.setPlayerPosition(timeInTicks);
It does the exact same thing I wanted but is in the supported DOM.
Sorry for wasting your time.
Copy link to clipboard
Copied
From here, since I didn't mention that fact myself, it might seem like I wasted YOUR time...regardless, glad you figured it out!