Script not working in vegas 19

LOLOGP wrote on 9/19/2021, 5:50 AM

Hello I have a question regarding Vegas 19 and its scripts. Some custom scripts that I have been using since vegas 15 have always worked with all the latest versions but in vegas 19 some of the program itself works.

import ScriptPortal.Vegas;
import System.Windows.Forms;
import Microsoft.Win32;

var plugInName = "VEGAS Spherize";
var presetName = "Default";

try
{
for (var track in Vegas.Project.Tracks) {
for (var evnt in track.Events) {
if (!evnt.Selected || evnt.MediaType != MediaType.Video) continue;

var fx = Vegas.VideoFX;

var plugIn = fx.GetChildByName(plugInName);
if (null == plugIn) {
throw "could not find a plug-in named: '" + plugInName + "'";
}

var effect = new Effect(plugIn);
evnt.Effects.Add(effect);
if (null != presetName) {
effect.Preset = presetName;
}
}
}
}
catch (errorMsg)
{
MessageBox.Show(errorMsg, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}

 

Do you have any idea why it doesn't work?

Comments

jetdv wrote on 9/19/2021, 7:50 AM

Try:

var plugInName = "Spherize";

instead of:

var plugInName = "VEGAS Spherize";

 

jetdv wrote on 9/19/2021, 7:54 AM

You can get the full list of available names by following this tutorial:

http://www.jetdv.com/2021/06/21/reading-available-effects-transitions-generated-media-and-renderers-in-vegas-pro/

 

LOLOGP wrote on 9/19/2021, 9:08 AM

thanks you solved with the script "Effects GUID.txt" great