Not sure why you want it but here: AddEmptyEvent.cs
//Script to add images in a directory to a new track
public class EntryPoint
Track myTrack = null;
Timecode myTC = null;
Timecode myLen = null;
public void FromVegas(Vegas vegas)
myVegas = vegas;
myTC = myVegas.Transport.CursorPosition;
myLen = new Timecode("00:00:05:00");
//Find the first selected track
foreach (Track atrack in myVegas.Project.Tracks)
myTrack = atrack;
if (myTrack == null)
MessageBox.Show("No Track is selected. Please select a track and try again");
//Add an empty media
VideoEvent newEvent = new VideoEvent(myTC, myLen);
AudioEvent newEvent = new AudioEvent(myTC, myLen);
Thanks Edward, Works beautifully.
You see, as a Professional, there are certain different methods to
me and my team's everyday workflow on different systems that i follow. Hope that made sense, (smile)
I always see a sense in using a script if this means reducing the number of steps necessary to execute a function which I need very often. If it needs two steps to insert an empty event the normal way, but only one single step after I installed a script which gives me the chance to use a clickable icon or a keystroke command, than a script may have fullfilled the wish.
Maybe there are several functions which workflow could be simplified same way. And if there are seven functions like this I use hundred times a day, scripts like this would save 700 steps a day.
Though I need the empty event function once a week only, which don't make me a favorite client for this certain script, I see the value it may have for others.
> "You could also use the given keystroke assignment."
Yea, what's wrong with Alt+I E ?
I'm guessing that the time it takes Vegas to load a script and execute it will be longer than simply pressing Alt+I E. I too don't see the need for the script when it's already a default key sequence. I guess if you are inserting a lot of these in a row, pressing one key instead of two is 50% faster. ;-)