Title was confusing, but I'll do my best to explain.
I'm editing a 38 hour long video and have many small clips that are majorly split apart, and I obviously don't want to drag them together one by one. Any way I can just press a button and they'll all connect end-to-end? I'm using Vegas Pro 13.
Save the text below to a file in Notepad. Name it RemoveAllGapsAndOverlaps.js. Put it in your scripts folder, which will probably be C:\Program Files\Sony\Vegas Pro 13.0\Script Menu or C:\Program Files\VEGAS\VEGAS Pro 13.0\Script Menu. Then run it from your Tools > Scripting menu.
/**
* Program:
* Description: This script deletes empty space between events,
* and removes all overlaps between events, and removes all event fades
* on all tracks.
* No attempt is made to synchronize audio and video events.
* Author: John Meyer
* April 9, 2007
*
**/
import Sony.Vegas;
import System.Windows.Forms;
try
{
// step through all selected video events:
for (var track in Vegas.Project.Tracks) {
var tracktime = track.Events.Item(0).Start;
var Fadelength : Timecode = new Timecode("00:00:00.00");
for (var evnt in track.Events) {
evnt.AdjustStartLength(tracktime,evnt.Length,false);
evnt.FadeIn.Length = new Timecode(Fadelength);
evnt.FadeOut.Length = new Timecode(Fadelength);
// Take currTake = evnt.ActiveTake;
// Timecode currOffset = currTake.Offset;
// evnt.Start = tracktime;
// currTake.Offset = currOffset;
tracktime = tracktime + evnt.Length;
}
}
}
catch (errorMsg)
{
MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
You can select a multiple fragments and then move them in one drag. There are many ways to select multiple fragments. You can use multiple Ctrl + LMB (Left Mouse Button) to select/deselect, LMB on the first fragment then Shift + LMB on the last fragment, Selection Edit Tool and/or combine methods mentioned earlier, etc.