3 Replies Latest reply on Mar 1, 2017 11:02 AM by Bruce Bullis

    Premiere Error trying to setCTI

    brysonm91110628

      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/VideoPlayerP roxy.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?