How to remove all video fx from events?

Sebaz wrote on 5/31/2010, 10:11 AM
I tried to find this in Vegas and I couldn't, and it doesn't seem to be in the manual either. FCP, Edius and I believe PPro have a way to select several events in the timeline and remove their filters/video fx. Is there a way to do that in Vegas, or if not, is there a current working script for it?

Comments

Terry Esslinger wrote on 5/31/2010, 10:22 AM
At least one. Excalibur has a "remove all effects" which works on all selected events.
rs170a wrote on 5/31/2010, 10:26 AM
See if this old script from Edward Troxel will do the trick.
Save it from Notepad as RemoveEffectFromAllMedia.js

Mike




/**
* This script will remove all effects from selected events
*
* To use, simply select the events on which effects are to be eliminated.
*
* Written By: Edward Troxel
* www.jetdv.com/tts
* Modified: 07-23-2003
**/

import System;
import System.Collections;
import System.Text;
import System.IO;
import System.Drawing;
import System.Windows.Forms;
import Sony.Vegas;

try {

var trackEnum = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());

//Go through the list of Events
var eventEnum = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var evnt : TrackEvent = TrackEvent(eventEnum.item());

if (evnt.Selected & evnt.IsVideo()) {
var videoEvent = VideoEvent(evnt);
var i;
for (i=videoEvent.Effects.Count - 1; i >= 0; i--) {
var effect = videoEvent.Effects[i];
videoEvent.Effects.Remove(effect);
}
}

eventEnum.moveNext();
}

trackEnum.moveNext();
}


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


Sebaz wrote on 5/31/2010, 11:52 AM
That script says it was last modified in 2003. In my experience, using scripts that old brings unexpected results. Is there anything more current?

BTW, Sony should really put that feature in Vegas. Every other major NLE has had it since I can remember.
rs170a wrote on 5/31/2010, 3:23 PM
Sebaz, I found a slightly newer version that I tested in Pro 9.0e and it works just fine.

Mike




/**
* This script will remove all effects from selected events
*
* To use, simply select the events on which effects are to be eliminated.
*
* Written By: Edward Troxel
* www.jetdv.com/tts
* Modified: 04-27-2005
**/

import System;
import System.Collections;
import System.Text;
import System.IO;
import System.Drawing;
import System.Windows.Forms;
import Sony.Vegas;

try {

var trackEnum = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());

//Go through the list of Events
var eventEnum = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var evnt : TrackEvent = TrackEvent(eventEnum.item());

if (evnt.Selected & evnt.IsVideo()) {
var videoEvent = VideoEvent(evnt);
var i;
for (i=videoEvent.Effects.Count - 1; i >= 0; i--) {
var effect = videoEvent.Effects[i];
videoEvent.Effects.Remove(effect);
}
}

eventEnum.moveNext();
}

trackEnum.moveNext();
}


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

Sebaz wrote on 5/31/2010, 6:28 PM
Thanks, Mike, I'll give it a try.