Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Snapping- is this possible?

  • Snapping- is this possible?

    Posted by Brett Nolan on November 18, 2010 at 7:40 pm

    Hey guys, thanks in advance for any help you may be able to offer on this.

    I simply have a series of clips spread out across my timeline after editing out specific parts that I needed. I would like to somehow have them all snap together (left) to the beginning of the timeline in order to render them in sequence. In the audio world this is known as shuffle, is there a way to do this automatically as opposed to clicking and dragging each clip?

    thanks, I have 6 projects that I would rather not go through and do this manually to.

    Brett

    B.Nolan
    http://www.awenmediadesign.com

    Brett Nolan replied 15 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Mike Kujbida

    November 19, 2010 at 3:37 pm

    If you have Vegas Pro, try the following script.
    Save it as DeleteEmptySpaceBetweenEvents.js
    It will affect all events on the selected track.
    If you want all events to be moved, select all tracks.
    Make sure to do a test first (save the project under a new name – e.g. video-test.veg) just in case something goes wrong.

    /**
    * 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);
    }

  • Brett Nolan

    November 20, 2010 at 3:18 pm

    Thank You ! Thank You ! Thank You !

    B.Nolan
    http://www.awenmediadesign.com

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