Add effect to all events on a timeline

JohnnyRed wrote on 12/29/2005, 11:24 AM
I suspect this one has been answered before, but I can't find it anywhere.

I'd like to add the same effect (a white border) to a bunch of jpgs on the same track. The aspect ratio of each jpg is a little different, so I need to add the effect to each photo.

I tried the "AddEffectToAllMedia" script but it did not work in Vegas 4.0.

Any help would be greatly appreciated.

Comments

JohnnyRoy wrote on 12/29/2005, 11:51 AM
Why didn’t the “AddEffectToAllMedia” script work? Did it give you an error? Do you have the .NET framework 1.0 installed? Can you run other scripts? Maybe it was written for Vegas 5 and you just need to change the line that says, “import Sony.Vegas;” to “import SonicFoundry.Vegas;”. Without more information it’s hard to tell what might be wrong.

~jr
JohnnyRed wrote on 12/29/2005, 12:53 PM
I have the .NET framework, version 1.1 installed, and I have been able to run other scripts. I am running off "Sony" Vegas version 4.0e. I don't believe I am operating with Sonic Foundry versions of Vegas 4.0. All the plug ins for effects are defined as "Sony" plug-ins.

Here's what happens:

I select all the events on a track, then select Tools/Scripting/Run Scripts/AddEffecttoAllMedia.js

The error message says:

"Error on Line 31:

Variable 'Effect' has not been declared"

Thanks for your help.
jetdv wrote on 12/29/2005, 12:59 PM
"Error on Line 31:

This error is typical for the problem JohnnyRoy mentioned - trying to run a Vegas 5 or 6 script in Vegas 4.

Look at the top and you'll see:

import Sony.Vegas;

that MUST be changed to work in ANY version of Vegas 4 to:

import SonicFoundry.Vegas;

Even though the later versions of 4 read Sony on the help screen, that line was not changed until Vegas 5.