FORUMS: list search recent posts

Script to Add VideoFX Preset to Clip

COW Forums : VEGAS Pro

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Frankie Jones
Script to Add VideoFX Preset to Clip
on Jul 30, 2015 at 5:51:22 pm

Is there a script anybody knows of (no clue how to write my own), that you can click to apply a videofx sony levels preset to selected clips. I realise you can set the preset on one clip and then paste attributes, but I wondered if the script way was possible.

Return to posts index

Edward Troxel
Re: Script to Add VideoFX Preset to Clip
on Jul 31, 2015 at 11:05:59 pm

You can use this as a base. Just change the effect name and the preset name as desired. This one was named "BWEffect.js"

* This script will add the B&W effect to all selected events.
* Written By: Edward Troxel
* Copyright 2004 - JETDV Scripts
* Modified: 10-01-2004

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) {

var ve : VideoEvent = VideoEvent(evnt);

var plugInName = "Sony Black and White";
var presetName = "100% Black and White";
var fx = Vegas.VideoFX;
var plugIn = fx.GetChildByName(plugInName);

var effect = new Effect(plugIn);
if (null != presetName) {
effect.Preset = presetName;


} catch (e) {

Edward Troxel

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved