Moving smaller, separated clips all with each other?

colbes wrote on 3/5/2018, 9:49 PM

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.

Comments

NickHope wrote on 3/5/2018, 10:02 PM

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);

}

 

 

fifonik wrote on 3/5/2018, 11:07 PM

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.

Last changed by fifonik on 3/6/2018, 1:41 AM, changed a total of 3 times.

Camcorder: Panasonic X1500 + Panasonic X920 + GoPro Hero 11 Black

Desktop: MB: MSI B650P, CPU: AMD Ryzen 9700X, RAM: G'Skill 32 GB DDR5@6000, Graphics card: MSI RX6600 8GB, SSD: Samsung 970 Evo+ 1TB (NVMe, OS), HDD WD 4TB, HDD Toshiba 4TB, OS: Windows 10 Pro 22H2

NLE: Vegas Pro [Edit] 11, 12, 13, 15, 17, 18, 19, 22

Author of FFMetrics and FFBitrateViewer