-
Fade offset across multiple tracks
Posted by Ken Mather on May 20, 2011 at 4:39 pmI’m fairly new to Vegas Pro, and have learned a TON from this forum, thanks!!! I am working on some training videos, and would like to be able to match the fade offset on multiple tracks without having to manually match each one to the next. Is there a way to make a setting apply across multiple tracks simultaneously?
Thanks!
Alex Hogg replied 1 year ago 4 Members · 7 Replies -
7 Replies
-
Mike Kujbida
May 20, 2011 at 6:42 pmHere’s a script that will do what you want.
Copy everything below ********, paste it into Notepad, save it as FadeInOut1Second.js and copy it into your script folder.
Even though it says “selected audio track”, it works on video events too.
For multiple events (like in your case), select the events you want and then run the script.
The beauty of this one is that it can be customized as desired.
By changing the timecode values (FadeIn, FadeOut or both) on the appropriate lines, you can set the fade times to anything you want.
I changed it from 00:00:01:00 to 00:00:00:15, re-saved it under a new name and now have a 1/2 sec. fade in/out script in addition to the original 1 sec. fade in/out.
If you want a FadeIn or FadeOut only version, delete the appropriate line, resave it under a new name and you’re done.Just to clarify, I’m referring the lines that go
evnt.FadeIn.Length = new Timecode(“00:00:01:00”);
and
evnt.FadeOut.Length = new Timecode(“00:00:01:00”);Have fun!!
********************************************************
/**
* 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);
} -
Mike Kujbida
May 20, 2011 at 6:45 pmFYI, I have done all the changes I suggested and they worked with no issues at all.
XP PRO, SP3, Vegas Pro 8, 9 and 10.Thanks to Edward Troxel for making this script freely available.
-
Jeff Schroeder
May 21, 2011 at 1:58 pmKen,
If I want to fade to black (or white, or even checkerboard) and I have a multiple tracks to get right, I just throw another track above and insert a generated black (or whatever) solid and fade up to it or fade down from it depending on which way I want to go.
Jeff
http://www.narrowroadmedia.com
Reply to this Discussion! Login or Sign Up