Script to set all events to 100%

johnmeyer wrote on 4/9/2008, 1:54 PM
This was requested in the Vegas Forum here:

Have these scripts been written?, so I wrote a script that did what the person wanted. Here it is:


/**
* This script sets all events to 100%
*
* Written By: John H. Meyer
* Date: April 9, 2008
*
**/

import System;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;

try {

//Go through the list of Tracks
var trackEnum = new Enumerator(Vegas.Project.Tracks);

while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());

//Go through the list of Events
var eventEnum = new Enumerator(track.Events);

while (!eventEnum.atEnd()) {
var evnt : TrackEvent = TrackEvent(eventEnum.item());

evnt.FadeIn.Gain = 1; // Correct the problem

eventEnum.moveNext();

} // End While eventEnum

trackEnum.moveNext();

} // End While trackEnum

} catch (e) {
MessageBox.Show(e);
}

Comments

No comments yet - be the first to write a comment...