I've been using "delete" active take on a large project with stills so I can reuse the "template" and add new pictures. Tedious if you have a lot of clips.
Is there a way to delete all the active takes in a group of clips? or is there a better way to do it?
Yeah . . but it was the - "Is there a way to delete all the active takes ?" that is still stumping me . . There IS a script that will allegedly remove non active takes . . just tried it . didn't work. tried to apply it to a selection of Events - nope!
DSE I wasn't clear on my message. I know that your suggestion works for removing all the takes for one clip but I want to remove the active take son all the clips in a project and then re-populate them with new media without losing all the positioning, transitions, etc.
Yeah . . but it was the - "Is there a way to delete all the active takes in a group of clips?" that is still stumping me . . There IS a script that will allegedly remove non active takes . . just tried it . didn't work. tried to apply it to a selection of Events - nope!
Since you're all such nice guys, here is the script, originally written by someone else, but fixed so that it works. Enjoy!
(Remember that when you cut/paste from the browser window, you may need to search and replace the line endings because your browser may put line breaks instead of paragraph breaks at the end of each line. In Word do a search and replace and search for:
^l
and replace with
^p
=======================
/**
* Program: RemoveNotActiveTakes.js
* Description: This script will delete all the takes that are not active, in the entire project.
* Author: Philip
*
* Date: Oct 30, 2003
* Revised: March 31, 2006 by John H. Meyer
* Tested 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
OK .. this kinda gets rid of the take delete thing . . bit quicker . . how about:
1/- Double Click Event
2/- Select Delete
3/- WHILE EVENT EMPTY SPACE STILL HIGHLIGHTED > Right click again > Select "Insert Empty Event".
This is only a 2-Click affair. OK you gotta go through all the EVENTS one by one, but you WILL end up with empty events waiting to take the new load of photos? Any good?
I bet some bright spark could work out a script that would do this. Something like replace all events with "empty" Event!
I made a small modification to it (removing the not active conditional) so that it would remove all the takes and it then left me with empty events that I could refill with new stills.
I now have two versions, one that removes all the non-active takes and one that removes the takes.
made a small modification to it (removing the not active conditional) so that it would remove all the takes and it then left me with empty events that I could refill with new stills.
Gee, I wished I'd known that's what you wanted. When I initially tried to remember how to correctly iterate backwards through the Takes collection, I screwed up and deleted all the takes, getting the blank events. I had that running after only about three minutes of work. I could have just quit right there.
It took another 45 minutes to get the darn thing to actually leave the active takes.
There was nothing tricky, as you can see, but I only write scripts about every three months, and I always have to re-learn everything, especially things like "Take" and "Takes" are two different things, and that the lower-case "take" variable used by the original author of this script is yet a third different thing. In addition, I briefly tried to use JohnnyRoy's method of deleting members of a collection, by copying the collection to an array list, but kept getting error messages I couldn't decipher. Fortunately, jetdv's backwards iteration method (which is what I used) seemed to work just fine. These two people are, of course, two of the best Vegas script writers out there.