Script to Run Other Scripts

wwaag wrote on 3/29/2014, 1:41 PM
Is there a simple script that will execute a sequence of other scripts, much like a batch file?

wwaag

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.

Comments

Gary James wrote on 3/30/2014, 2:43 PM
Although I've never tried this myself, there are two exposed functions off the Global Vegas object that claim to be able to run another script

// Run a script from a file. Parameters: scriptFile: the complete file path of the script to run
void RunScriptFile ( String scriptFile )

// Run a script from a file. Parameters: scriptFile: the complete file path of the script to run scriptArgs: script arguments
void RunScriptFile ( String scriptFile, String scriptArgs )
jetdv wrote on 3/31/2014, 8:55 AM
Gary, that command will work to run a script but only from within a Custom Command.

From the scripting API list for Vegas Pro 8:

"Custom commands can run scripts using RunScriptFile and RunScriptText methods of the Vegas object. These methods will fail if called from within a script."
Gary James wrote on 3/31/2014, 9:10 AM
Thanks Ed. I must have missed that explanation when I looked through the Vegas API docs.
wwaag wrote on 3/31/2014, 10:45 PM
I guess the answer is "no", especially at my level of understanding. Thanks for the replies.

wwaag

AKA the HappyOtter at https://tools4vegas.com/. System 1: Intel i7-8700k with HD 630 graphics plus an Nvidia RTX4070 graphics card. System 2: Intel i7-3770k with HD 4000 graphics plus an AMD RX550 graphics card. System 3: Laptop. Dell Inspiron Plus 16. Intel i7-11800H, Intel Graphics. Current cameras include Panasonic FZ2500, GoPro Hero11 and Hero8 Black plus a myriad of smartPhone, pocket cameras, video cameras and film cameras going back to the original Nikon S.