Dobry dzień. Czy ktoś zna najszybszy sposób na połączenie wszystkich ciętych klatek na ścieżce? Chciałbym scalić wszystkie obrazy za pomocą kilku kliknięć.
Good day. Does anyone know the fastest way to combine all cut frames in a track? I'd like to merge all images in a few clicks.
@R-P, yes the FASTEST way is using a script. I've recently had several tutorials that did other things and then did this at the end. In fact, take a look at my current series where we find duplicate frames, delete them, and then remove the gaps.
The last step in the process - which comes out next Monday - will be to remove the gaps in the timeline. But to shorten things, here's some actual code that will do only that last step - remove the gaps. Just take this code, paste it into Notepad, and save it as something like "CombineAll.cs" into the [My Documents]\Vegas Script Menu folder - the important part is that it must end with ".cs" and needs to be in the "Vegas Script Menu" folder. After it has been placed there, start VEGAS, load that project, and then go to Tools - Scripting - and choose the CombineAll script (or whatever name you chose to give it.) It will then move everything to the beginning of the timeline with no gaps. Naturally it can be modified to work differently if you wish such as only working on selected tracks or only on selected events or not moving the first event instead of moving it to the beginning of the timeline. Lots of options are available.
using System;
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Drawing;
using System.Runtime;
using System.Xml;
using ScriptPortal.Vegas;
namespace Test_Script
{
public class Class1
{
public Vegas myVegas;
public void Main(Vegas vegas)
{
myVegas = vegas;
Timecode CurrentEnd = new Timecode(0);
foreach (TrackEvent evnt in track.Events)
{
evnt.Start = CurrentEnd;
CurrentEnd = evnt.End;
}
}
}
}
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
Test_Script.Class1 test = new Test_Script.Class1();
test.Main(vegas);
}
}