scripts not working

rs170a wrote on 7/13/2004, 10:47 AM
(message sent to Sony Customer support but I'm still waiting for a response)

In spite of a reinstall of both Vegas and Microsoft's Framework, any time I try to run ANY script (for example "BatchRenderGUI (JHM).js"), I get the following message:

An error occurred during execution of the script F:\Program Files\Sony\Vegas 5.0\Script
Menu\BatchRenderGUI (JHM).js

Exception thrown by method called.

The "Details" box says:
Failed to create managed object: 'Sony.Vegas.ScriptHost'

Any other ideas? I'd sure like scripting capabilities again. Thanks.

Mike

Comments

craftech wrote on 7/13/2004, 11:23 AM
Try this:
You need to edit the script itself. Search your drive for the script. For example:

JHM_Audit_(for_short_blank_gaps).js

Open the file with an editor like Notepad.

At the top of the script you will see the following line

import Sony.Vegas;

Change the above line to read as follows:

import SonicFoundry.Vegas;

Save the file (overwrite the provious copy) and then try to execute your script.

John
rs170a wrote on 7/13/2004, 12:03 PM
Thanks John. I forgot to mention that this problem is on 5.0b Build 160.
All scripts worked with the original 5.0.

Mike
jetdv wrote on 7/13/2004, 12:38 PM
Look at the import line. I'll bet it does NOT read:

import Sony.Vegas;

The initial release from Carson had an incorrect change to the import line. The incorrect line reads:

import Sony.MediaSoftware.Vegas;

Get rid of "MediaSoftware." and I'll bet it works.
rs170a wrote on 7/13/2004, 12:52 PM
I was hoping you were right but I checked several of them and they all read import Sony.Vegas
I just grabbed them again from his site and recopied them just in case - still no go :-(

Mike