Problem running script.

craftech wrote on 5/24/2004, 5:41 PM
I have NEVER tried running a script,but the gaps issue really got to me on my current project. Since I have multiple video AND audio tracks, closing all the gaps is really tedious. So I figured I would finally give scripts a try.
I am running W98SE and have the MIcrosoft .NET Framework version 1.1 installed.

When I went to run John Meyer's JHM_Audit_for_short_blank_gaps script.... I got the following error message:

Error on line 17
Variable 'Timecode" has not been declared.

Anyone run into this problem?

Thanks,

John

Follow up: It appears that ALL scripts are generating this error.

Comments

dfwmediagroup wrote on 5/24/2004, 6:21 PM
I tried to locate this script, but I coudn't find it on the net. If you can get it to me I'll see if I can't fix it for you.

What version of Vegas are you trying to run it under?
craftech wrote on 5/24/2004, 6:45 PM
I am running Vegas 4.0
Thank you for the help. It can be found here:

http://www.sundancemediagroup.com/help/kb/kb_login.asp?s=1&url=kb_download.asp?id%3D343

You have to sign up if you haven't already done so.

John

It is called Audit For Short Blank Gaps
dfwmediagroup wrote on 5/24/2004, 7:02 PM
Try this:

//import Sony.Vegas;
import SonicFoundry.Vegas;


With Vegas 5 the object was changed fro SonicFoundry to Sony. That is the naming convention for Com Objects, Company Name->Product Name.
craftech wrote on 5/24/2004, 7:20 PM
Try this:

//import Sony.Vegas;
import SonicFoundry.Vegas;


With Vegas 5 the object was changed fro SonicFoundry to Sony. That is the naming convention for Com Objects, Company Name->Product Name.
==========
I'm not sure I get it. The scripts list comes up. I pick the script and I get the error message in Vegas. I'm confused.

John
dfwmediagroup wrote on 5/24/2004, 7:25 PM
You need to edit the script itself. Search your drive for the following file name:

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.
craftech wrote on 5/24/2004, 7:32 PM
Now I get it.

Thank you so much. I'll give it a try later.

Regards,

John
craftech wrote on 5/24/2004, 8:34 PM
It worked!!

You're a lifesaver. Thanks again.

Regards,
John
dfwmediagroup wrote on 5/24/2004, 9:34 PM
You're welcome!