Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Closing multiple Events

  • Closing multiple Events

    Posted by Andre Anthonio on January 21, 2011 at 6:04 pm

    If I have multiple events on a timeline, for example 30 clips with 2-3 seconds between them, how do I select that area to have the clips “collapse” or “come together” or how do I elminate the seconds between the clips, how can this be achieved in the least number of steps. Right now I’m moving each clip one by one. Embarrassing!

    Mike Kujbida replied 15 years, 6 months ago 3 Members · 2 Replies
  • 2 Replies
  • Aleksey Tarasov

    January 21, 2011 at 6:20 pm

    Scripts can help you. Vegasaur toolkit has “Close gaps” commands that delete all empty slots (gaps) between selected events or on the current track. To delete gaps across multiple tracks you can use “Auditor” tool. Other scripting plug-ins (for example Vegas Pro Production Assistant) also contain similar tools.

  • Mike Kujbida

    January 22, 2011 at 12:38 am

    If you’re using Vegas Pro, here’s a script (it works in Pro 10) that you can use to do this.
    Copy it and save it as DeleteEmptySpaceBetweenEvents.js

    /**
    * Program:
    * Description: This script will Delete Empty Space Between Events In Selected Tracks
    * Author: Philip
    *
    * Date: August 31, 2003
    **/

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

    //time intervals for split events.

    try
    {

    // step through all selected video events:
    var FirstTrack : Track = Vegas.Project.Tracks.Item(0);

    // step through all selected video events:
    for (var track in Vegas.Project.Tracks) {
    if( !track.Selected) continue;
    var tracktime = new Timecode(0);
    for (var evnt in track.Events) {
    evnt.AdjustStartLength(tracktime,evnt.Length,true);
    tracktime = tracktime + evnt.Length;
    }
    }
    }

    catch (errorMsg)
    {
    MessageBox.Show(errorMsg, “Error”, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
    }

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