Turn off GUI when transforming with script

JazerSprat wrote on 12/6/2007, 9:32 AM
Hi all,

I am using Vegas 7.0 ( and in process of switching to 8.0) to render WAV files into MP3 files. I have developed a script to do this and I can successfully run 34 of these transformations at the same time.

However, I was wondering if there was anyway to turn of the drawing of the GUI when running the script from the command line. I understand that the a script runs within the confines and controls of the Vegas environment, but can the Vegas environment be instantiated without the GUI?

Did I miss this in the documentation somewhere?

Thanks for your time.

Kashif

Comments

Teetow wrote on 12/6/2007, 2:55 PM
There's an undocumented commandline switch -NOWINDOW, maybe that helps.
2G wrote on 2/6/2008, 1:05 PM
So you can run a Vegas script completely from the command line? I can't seem to find any command line parameters defined for Vegas. Do you just run vegas80.exe with a parameter specifying the name of the script?

I looked in the doc, but didn't find anything about this. Am I overlooking it?

Thx.

Jerry
jetdv wrote on 2/6/2008, 7:44 PM
Yes, you can start Vegas and immediately run a script direct from the command prompt. Just use a command like:

"c:\Program Files\Sony\Vegas Pro 8.0\vegas80.exe" -SCRIPT:"d:\MyScript.js"
2G wrote on 2/8/2008, 8:54 PM
Thanks. Is that documented somewhere, or is it just handed down from generation to generation?

Just to appear completely greedy.... by chance is there any way to pass a parameter to the script as well on the command line?

Thanks.

Jerry
jetdv wrote on 2/9/2008, 6:49 AM
To pass parameters, I usually write them to a text file and then have the script read them from that text file. That way it's very flexible. But, there is a way to pass parameters.

Look in the Vegas Pro 8 scripting API for the "ScriptArgs". This allows passing of named parameters into the script.
jetdv wrote on 2/9/2008, 7:00 PM
Finally had time to look up some info. Try this:

http://www.sonycreativesoftware.com/forums/ShowMessage.asp?ForumID=21&MessageID=532824
ForumAdmin wrote on 2/11/2008, 7:18 AM
You can also specify SCRIPTARGS on the command line:


vegas80.exe -SCRIPTARGS:"test1=testing 1 2 3&test2=testing 4 5 6&test3=testing 7 8 9" -SCRIPT:"C:\TestScript.cs"

marks27 wrote on 2/13/2008, 9:36 PM
Can I understand from this that the .cs file is read in and compiled dynamically?

marks
ForumAdmin wrote on 2/14/2008, 7:11 AM
yes, vegas wil dynamically compile C# scripts. You can also run pre-compiled scripts. The FAQ included with the scripting SDK has more details on this.