Comments

Dexcon wrote on 2/14/2021, 6:15 AM

Yes. Highlight all the events (Crtl+A or variations thereof) and then hit G (group). But everything that you highlight will then be grouped. Mind you, this is complete grouping - the entire selected video and audio tracks will be grouped together as one, not grouping video to audio event by event.

But the question that then arises is ... when you've imported media onto the timeline it should already be grouped until it is deliberately ungrouped. Why then do you need to batch group them when each video/audio event should already be grouped on import onto the timeline?

Cameras: Sony FDR-AX100E; GoPro Hero 11 Black Creator Edition

Installed: Vegas Pro 15, 16, 17, 18, 19, 20, 21 & 22, HitFilm Pro 2021.3, DaVinci Resolve Studio 19.0.3, BCC 2025, Mocha Pro 2025.0, NBFX TotalFX 7, Neat NR, DVD Architect 6.0, MAGIX Travel Maps, Sound Forge Pro 16, SpectraLayers Pro 11, iZotope RX11 Advanced and many other iZ plugins, Vegasaur 4.0

Windows 11

Dell Alienware Aurora 11:

10th Gen Intel i9 10900KF - 10 cores (20 threads) - 3.7 to 5.3 GHz

NVIDIA GeForce RTX 2080 SUPER 8GB GDDR6 - liquid cooled

64GB RAM - Dual Channel HyperX FURY DDR4 XMP at 3200MHz

C drive: 2TB Samsung 990 PCIe 4.0 NVMe M.2 PCIe SSD

D: drive: 4TB Samsung 870 SATA SSD (used for media for editing current projects)

E: drive: 2TB Samsung 870 SATA SSD

F: drive: 6TB WD 7200 rpm Black HDD 3.5"

Dell Ultrasharp 32" 4K Color Calibrated Monitor

 

LAPTOP:

Dell Inspiron 5310 EVO 13.3"

i5-11320H CPU

C Drive: 1TB Corsair Gen4 NVMe M.2 2230 SSD (upgraded from the original 500 GB SSD)

Monitor is 2560 x 1600 @ 60 Hz

TobHammm wrote on 2/14/2021, 6:20 AM

Thanks, but I know how to group everything, that's not what I want. Just each video with the audio below. The audio comes from different sources.

jetdv wrote on 2/14/2021, 8:13 AM

is there a "batch" way to do this with all events on the 2 tracks?

Short answer is "Yes". I don't have that as a built-in tool in Excalibur. I assume the audio is not the original audio that came with the clip? Otherwise the "restore missing A/V" tool in Excalibur would work.

May we also assume that event 1 on the video track goes with event 1 on the audio track? And so forth down the line? If yes, this simple code might work:
 

            // Assume the first track is the video track and the second track is the audio track
            Track vtrack = myVegas.Project.Tracks[0];
            Track atrack = myVegas.Project.Tracks[1];

            int eventNum = 0;
            foreach(TrackEvent evnt in vtrack.Events)
            {
                TrackEvent aevnt = atrack.Events[eventNum];
                TrackEventGroup grp = new TrackEventGroup();
                myVegas.Project.Groups.Add(grp);
                grp.Add(evnt);
                grp.Add(aevnt);
                eventNum++;
            }

Start with the base found here:

http://www.jetdv.com/2021/02/01/what-is-the-minimum-i-need-to-write-a-script-for-vegas/

Then add the above code and that should do what you want assuming the first track is your video track and the second track is your audio track and you have the same number of events on both tracks and they all match. I may make a cleaner version that does more checking in a future tutorial.

joelsonforte.br wrote on 2/14/2021, 8:19 AM

@TobHammm

The script Group Selected Events of the HOS does this. It is free and was developed by a my request to the the HOS developer. You and I have a similar workflow. I'm glad to know that others have workflows similar to mine.

 

Below is the link where you can download the Group Selected Events script and other free tools and scripts created by the HOS developer @wwaag​​​​​​​ for free.

https://tools4vegas.com/library/

TobHammm wrote on 2/14/2021, 9:38 AM

Thanks @joelsonforte.br and @jetdv, there is a script for everything it seems. :)

Marco. wrote on 2/14/2021, 10:09 AM

"there is a script for everything it seems. :)"

That's what makes Vegas Pro so outstanding.