Executing Multiple C# Scripts in Vegas Pro via CMD ?

andy-0 wrote on 11/19/2024, 1:22 PM

How can I create a "startpoint.cs" script in Vegas Pro that, when executed from the toolbar, opens CMD, executes other C# scripts(separeted C# files) in sequence on the active project? I haven't found any information, examples, or even confirmation if this is possible to accomplish.

 

Just asking this out of curiosity

Comments

jetdv wrote on 11/19/2024, 1:56 PM

You can start VEGAS from a command line and tell it to run one script.

Sounds like you'd be better off with a custom command that runs the multiple scripts. Or, better yet, just combine the all into one process???

andy-0 wrote on 11/19/2024, 2:21 PM

@jetdvv

theoretically, what would the script that starts a cmd to execute another script look like?

 

jetdv wrote on 11/19/2024, 2:29 PM

A script can't run another script. A Custom Command can as shown in the tutorial I linked to above.

You can start VEGAS and tell it to run a script like this from a batch file:

"c:\[path to VEGAS]\vegas[version].exe" -SCRIPT:"c:\ScriptToRun.cs"