Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › VEGAS Pro › Automatic markers

  • Edward Troxel

    July 16, 2008 at 5:47 pm

    In the full versions of Vegas, markers can easily be added at set increments via a script.

    This script (MarkerInterval.js) will add one for every minute. You can change the interval variable to get different intervals. If you don’t want to worry about scripting, both Excalibur and Ultimate S can do it for you as well.

    [code]
    /**
    * This script will put markers or regions at the set interval
    * doRegion = false —> Markers
    * doRegion = true —> Regions
    * IntervalTime: Length of time between the markers or length of regions
    * StartTime: Where the first marker/region is to begin
    *
    * Written By: Edward Troxel
    * Copyright 2005 – JETDV Scripts
    * Created: 09-14-2005
    **/

    import System.Windows.Forms;
    import Sony.Vegas;

    var IntervalTime = new Timecode(“00:01:00:00”);
    var StartTime = new Timecode(“00:00:00:00”);
    var doRegion = false;
    var MarkEndTime = Vegas.Project.Length;

    try {
    var MarkTime = StartTime;

    while (MarkTime < MarkEndTime) { if (doRegion) { var myRegion = new Region(MarkTime, IntervalTime, ""); Vegas.Project.Regions.Add(myRegion); } else { var myMarker = new Marker(MarkTime); Vegas.Project.Markers.Add(myMarker); } MarkTime += IntervalTime; } } catch (e) { MessageBox.Show(e); } [/code]
    Edward Troxel
    JETDV Scripts

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy