Comments

rshetina wrote on 6/23/2003, 9:31 PM
Here you go:

/**
* 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 (null == track)
throw "no selected track";

var eventEnum = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var evnt : VideoEvent = VideoEvent(eventEnum.item());

// Set Reduce Interlace Flicker
evnt.ReduceInterlace = true;

eventEnum.moveNext();
}

MessageBox.Show("Done!");

} 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 **/

jetdv wrote on 6/23/2003, 11:35 PM
NOTE: This script will perform it's function on all events on SELECTED tracks. If you have multiple video tracks, select them all.
roger_74 wrote on 6/24/2003, 4:22 AM
I haven't tried this script, but doesn't it work on one selected track only?
jetdv wrote on 6/24/2003, 10:06 AM
Oops - you're right - the FIRST selected track only. Run it multiple times for multiple video tracks.
albaby wrote on 6/25/2003, 9:19 PM
It's still great! I don't mind selecting a track-at-a-time to perform the script! It's still a lot faster than placing the thing on every event in that track!
albaby wrote on 6/25/2003, 9:22 PM
Thanks for pursuing my questions so fervently. I tried to log on to the sundance site, and I can't get past the validation code page, because I haven't been sent one yet for some reason. But I did get a whole slew of emails that seemed to be directed to other people...
roger_74 wrote on 2/3/2004, 1:53 PM
I was making a slideshow and suddenly found myself wanting to do this.

Here's a very simple script that applies Reduce Interlace Flicker on all events, regardless of selection.

import SonicFoundry.Vegas;

for (var currentTrack : Track in Vegas.Project.Tracks)
{
    if (currentTrack.IsVideo() == true)
    {
        for (var currentEvent : VideoEvent in currentTrack.Events)
        {
            currentEvent.ReduceInterlace = true;
        }
    }
}
TeetimeNC wrote on 2/8/2004, 5:47 PM
I believe you can just select all video events in a track, right click, and set reduce interlace flicker on. No script needed.

Jerry
roger_74 wrote on 2/9/2004, 2:34 AM
Indeed... it's "hidden" under Switches, not Properties where I usually use it. Thanks for the tip!