Setting switches for multiple events

Zoatebix wrote on 12/4/2018, 3:21 PM

Hey there everybody,

I'm using Vegas Pro 14 and I'm trying to toggle the Normalize switch for all events in my project to "off." As best as I can tell, and I just did a small-scale test on two events, selecting everything and going to edit>switches (or right-clicking or otherwise bringing up the context menu and clicking switches) and clicking on Normal reverses how the switch is set for every event selected: if it's on on an event, it turns off, and if it's off, it turns on.

Is there another UI element that I'm forgetting about that could help me, or am I going to have to beg/borrow/search for/write a script to do what I want?

Comments

Marco. wrote on 12/4/2018, 4:46 PM

A script like this already exists (JS):

import ScriptPortal.Vegas;

var trackEnum : Enumerator = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
    var track : Track = Track(trackEnum.item());
    if (track.IsAudio()) {
        var eventEnum : Enumerator = new Enumerator(track.Events);
        while (!eventEnum.atEnd()) {
            var audioEvent : AudioEvent = AudioEvent(eventEnum.item());
            audioEvent.Normalize = false;
            eventEnum.moveNext();
        }
    }
    trackEnum.moveNext();
}

 

Zoatebix wrote on 12/4/2018, 6:03 PM

That's just what the doctor ordered, thank you!