Comments

rs170a wrote on 6/27/2011, 6:27 PM
See if the following script works for you (thanks to Edward Troxel).
Save it 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: 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);
}

altarvic wrote on 6/27/2011, 8:51 PM
Mike, this script will remove effects, not transitions.
Try to find another one in your collection ;)
rs170a wrote on 6/27/2011, 9:06 PM
Oops, sorry about that.
My brain is not firing on all cylinders right now because of a very intense project at work.
I'll leave the ther one in case someone has a use for it.
See if this one works (once again from Edward Troxel).
Copy and save this one as RemoveTransitions.js.

Mike




/**
* This script will remove the transition for all selected events.
*
* Written By: Edward Troxel
* Copyright 2006 - JETDV Scripts
* Modified: 01-14-2006
**/

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


try {
//Go through the list of Tracks
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.FadeIn.RemoveTransition();
}
eventEnum.moveNext();
}
trackEnum.moveNext();
}


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

Dan Sherman wrote on 6/28/2011, 6:17 AM
Just buy Excalibur and have it done with.