filling in gaps

dvideo2 wrote on 5/1/2009, 6:53 AM
If I have (let's say 5 individual video clips) and between each clip is a 30 second gap..........Is there a quick way to connect each clip, back to back and remove the gaps? I've been dragging one to the next while keeping "auto ripple" on, but this can become time consuming when you have 30 or more clips...........Isn't there a quick keyboard command?
thanks..

Comments

jetdv wrote on 5/1/2009, 7:39 AM
Use a script. For example, the Gap/Overlap tool in Excalibur will easily do this. I know there's a similar tool in Ultimate S.
rs170a wrote on 5/1/2009, 7:47 AM
Here's a script I grabbed a long time ago that should work.
Do a copy/paste into Notepad and 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);
}