Comments

Soniclight wrote on 3/24/2010, 3:13 PM
Not sure there is, all I know is that one can do this with audio events in Preferences/Editing, i.e. in milliseconds/ms. (or maybe whatever increments the project grid is setup as?).
I'll let more veteran members give you the real deal on this.
Grazie wrote on 3/24/2010, 3:19 PM
http://www.sonycreativesoftware.com/forums/ShowMessage.asp?ForumID=21&MessageID=650542Try this Script: Fade-In . .Fade-Out . . [/link]

Grazie
Soniclight wrote on 3/24/2010, 3:37 PM
Well, there you go, issue solved.

(Thanks, Grazie, I'll go snatch that one up and stick in my Vegas too :)
BittenByTheBug wrote on 3/24/2010, 4:25 PM
Thanks! Nice script. Works like a charm.

Now, if I want to change the fade offset from 1 second to some other value, how do I open it for editing? I opened it in Notepad and saw a bunch of weird characters? Is this a compiled version?
jetdv wrote on 3/25/2010, 9:11 AM
Here's the clear version:


/**
* This script will Fade the selected audio track up to the current cursor position
*
* Written By: Edward Troxel
* Modified: 04-21-2003
**/

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

if (evnt.Selected) {

evnt.FadeIn.Length = new Timecode("00:00:01:00");
evnt.FadeOut.Length = new Timecode("00:00:01:00");

}
eventEnum.moveNext();
}
trackEnum.moveNext();
}


} catch (e) {
MessageBox.Show(e);
}
BittenByTheBug wrote on 3/25/2010, 3:42 PM
jetdv, That's some neat and clean coding there. Thanks a lot!