Cannot set event take to 'none'

JohanAlthoff wrote on 1/27/2004, 8:20 AM
The following script re-enables Take 1 of an inactive take. I want to do the other way around, but it doesn't seem possible. This would be an ENORMOUS speed-up, since I'm not interested in the video clips while I render audio, and they pose a huge slow-down of GUI redraws and disk payload.

What can be done?

/**
* re-enable inactive takes (dirty hack)
*
* By Johan Althoff (johan dot althoff at starbreeze dot com) and Magnus Auvinen, Starbreeze Studios
*
* Loosely based upon:
*
* This script will turn on Reduce Interlace Flicker for all events on the selected track
* Original Code for adding markers to all events Written By: Edward Troxel
* www.jetdv.com/tts
* 04/02/2003
* Modified By: Rich Shetina
* rshetina@shetina.com
* 06/23/2003
**/

import System;
import System.IO;
import System.Windows.Forms;
import SonicFoundry.Vegas;

try
{
var zeroMark : Timecode = new Timecode(0);
var myMarker : Marker;

//Find the selected event
var track = FindSelectedTrack();
if(track == null)
throw "no selected track";

var eventEnum = new Enumerator(track.Events);
while (!eventEnum.atEnd())
{
var evnt : VideoEvent = VideoEvent(eventEnum.item());
if(!evnt.ActiveTake.IsValid())
evnt.ActiveTake = evnt.Takes.Item[0];

eventEnum.moveNext();
}
}
catch(e)
{
MessageBox.Show(e);
}


function FindSelectedTrack() : Track
{
var trackEnum = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd())
{
var track : Track = Track(trackEnum.item());
if (track.Selected)
{
return track;
}
trackEnum.moveNext();
}
return null;
}

/** END **/

Comments

jetdv wrote on 1/27/2004, 11:54 AM
If you don't care about the video, can't you just mute the video track? That's EASILY done in the script - you could even un-mute the afterwards.
JohanAlthoff wrote on 1/28/2004, 4:14 AM
No, because the GUI still redraws those irritating little frames. And I can't turn "draw waveforms and frames in events" because I need to see the waveforms.

I need to take it offline, not mute it. Quckiens the load times for the project, too.