/**
 * This script will add markers at the specified interval
 **/

import System;
import System.IO;
import System.Windows.Forms;
import SonicFoundry.Vegas;

//Change this value to be the desired interval
//Format:  hh:mm:ss:ff (hours:minutes:seconds:frames)
var Interval = "00:05:00:00";


try {
  var myMarker : Marker;
  var IncTime : Timecode = new Timecode(Interval);
  var CurrTime : Timecode = IncTime;
  var EndTime : Timecode = Vegas.Project.Length;

  while (CurrTime < EndTime) {
      //Put a marker at the interval point
      myMarker = new Marker(CurrTime);
      Vegas.Project.Markers.Add(myMarker);
      CurrTime = CurrTime + IncTime;
  }



} catch (e) {
    MessageBox.Show(e);
}
