Is there a way to remove all Takes in timeline leaving only empty events?
Using Customize Keyboard I can get a DELETE ACTIVE or DELETE shortcut, but these can be used only on single event and there isn't anyway to select events and delete all takes at same time.
I revised a script by Philip which removes all non-active takes from a project. You can then use the lightning bolt icon in the Project media to remove all the un-used media from the project. I have copied that script below, but I commented out a key "if" statement and its companion "end" statement. As a result, the script as copied below will remove ALL takes, leaving you with nothing but empty events. I think this is what you asked for.
I just tested it in Vegas 7, and it does exactly what you asked for.
John
/**
* Program: RemoveNotActiveTakes.js
* Description: This script will all the takes that's not active.
* Author: Philip
*
* Date: Oct 30, 2003
* Revised: March 31, 2006 by John H. Meyer
* Test on Vegas 6.0d
* Change Log: Changed take removal loop to loop BACKWARDS through ALL takes.
**/
// step through all video events:
for (var track in Vegas.Project.Tracks) {
for (var evnt in track.Events) {
for (var i=evnt.Takes.Count - 1; i >= 0; i--) {
// if (!evnt.Takes[i].IsActive) {
evnt.Takes.Remove(evnt.Takes[i]);
// } // End if
} // End for i
} // End for evnt
} // End for track