Scripting Error since upgrading to V5

toddgeer wrote on 2/13/2005, 10:52 AM
I was able to use the batch render scripts downloaded here and there when I was using V4. Now that I upgraded, I try to run the same scripts and receive error messages such as "variable 'timecode' not declared, and "variable 'renderer' not declared." Strange it worked before. I've even downloaded recent versions of the scripts from, say, vasst, but still have the same problem. Upgraded to 5.0d, no difference. Any ideas?

Comments

Spot|DSE wrote on 2/13/2005, 11:01 AM
Toddgeer,
You need to revise your old scripts so that they say "Sony" rather than "SonicFoundry" in the header. Open your scripts in Notepad, and anywhere you see the words "SonicFoundry, you'll need to change it to read Sony. Then everything will open just fine. If you need specific examples, visit Ed Troxel's site, www.jetdv.com or the VASST.com site, look at the Vegas FAQ page, and you'll see specifics.
Grazie wrote on 2/13/2005, 11:05 AM
I guess you'll need to update the Scripts as they will contain a reference to Sonic Foundry - now they'll need to be Sony - gouing from V4 to V5 . . . Better still will be to upload ALL the scripts at once. Somebody remind us of the nice chap's website with these updates on? This'll be better than having to change the line that contains Sonic Foundry.

Hold tight - somebody is clacking already . .

Grazie
Grazie wrote on 2/13/2005, 11:05 AM
.. . or Spot will get in first! Well done Chum!

G
toddgeer wrote on 2/13/2005, 2:24 PM
Thanks, that makes sense. I tried it, and the result changed, but still failed:

Compilation error on line 31:

Variable 'Renderer' has not been declared

System.ApplicationException: Failed to compile script: 'C:\Documents and Settings\Todd\My Documents\My Video Projects\Scripts\BatchRender_DVD_NTSC.js'
at Sony.Vegas.ScriptHost.RunScript()

Line 31 is:

var renderer : Renderer = FindRenderer(rendererRE);

I downloaded a slew of "made for V5" scripts from somewhere, and the sonicfoundry.vegas was specified throughout.

Confused. Thanks for all the help!!!
jetdv wrote on 2/13/2005, 2:36 PM
In order to diagnose that, we'd need to see more of the script than just that one line.