Comments

JohnnyRoy wrote on 5/19/2009, 9:45 AM
That's one of the many things that the new Sony Production Assistant plug-in for Vegas Pro 9.0 does as do other plug-ins like Ultimate S Pro and Excalibur, but I believe there is also a free remove gaps script that is floating around the Internet. You just need to search for it. Perhaps someone else here will know where it is.

~jr
rs170a wrote on 5/19/2009, 9:52 AM
Rob, I found this in my script collection so see if it works for you.
Save it as DeleteEmptySpaceBetweenEvents.js

Mike


/**
* 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);
}
Ros wrote on 5/19/2009, 10:13 AM
Thanks so much guys!

Mike, the script is just great!

And Johnny, last night I downloaded all the tutorials for PA. Watch the first 2, and will be watching the remaining asap. I'm looking into it.

Although I wish there would be a side by side comparison between PA and Ultimate S.

Rob