In this script, we learn how to render multiple projects at a single time. In this example, we have a wedding that is broken up between four different projects. With a single call, we can now render all four projects to the same format with a single call.
The full source code and compiled DLL for this script can be found at: http://www.jetdv.com/tutorial/Vegas/VEGAS-JETDV-Render-Script.zip
Please sign up here and leave comments with suggestions of tasks you would like to see automated. You can help guide the direction of these videos. Also, please subscribe to my YouTube channel.
What`s the software you used for this script ?
Johnny, the short answer is Microsoft Visual Studio. For the longer answer, please see these tutorials which all built on each other to get to this script:
http://www.jetdv.com/2021/02/01/what-is-the-minimum-i-need-to-write-a-script-for-vegas/
http://www.jetdv.com/2021/02/04/how-can-i-find-and-correct-errors-debug-in-a-script-running-in-vegas/
http://www.jetdv.com/2021/02/22/how-do-i-create-a-script-with-a-form-in-vegas/
http://www.jetdv.com/2021/03/29/rendering-in-vegas-finding-and-reading-renderers-and-templates-part-1/
http://www.jetdv.com/2021/04/05/rendering-in-vegas-rendering-the-full-project-part-2/
http://www.jetdv.com/2021/04/12/rendering-in-vegas-rendering-regions-part-3/
http://www.jetdv.com/2021/04/19/rendering-in-vegas-rendering-tracks-from-regions-part-4/
http://www.jetdv.com/2021/04/26/rendering-in-vegas-rendering-multiple-projects-part-5/ (this tutorial)
And then to finish it out, the next tutorial:
http://www.jetdv.com/2021/05/03/rendering-in-vegas-saving-snapshots-from-the-timeline-part-6/
You might also look at the VEGAS Playlist on my YouTube channel to see all of the VEGAS tutorials.
Edward,
Thanks a lot
I will try to learn it !!
BTW,
Do you know Reaper?
It very similar to Vegas,
Can your Excalibur function transform to Reaper?
How to render multi-projects with their regions?
To do that, you would basically need to combine Part 5 and Part 3:
http://www.jetdv.com/2021/04/12/rendering-in-vegas-rendering-regions-part-3/
So you would take the code called in part five that does multiple project and then call the code from part 3 that does multiple regions. You would also need to modify how the file name is generated as you’d probably want to also include the project name.
I do know about Reaper. As far as I know, it is not programmable. Excalibur will not work with Reaper.
Hello, how to convert .js ( JScript ) to .cs ( C# ) ?
There’s very few changes needed to go from .js to .cs. First of all, all of the “import” statements at the top need to be changed to “using”. Secondly, all of the “var” statements need to be changed to explicitly state what type of variable it is. For example the left .js code would change to the right .cs code:
var tc = new Timecode(0); ——> Timecode tc = new Timecode(0);
Then you need to make sure the script is in the format shown in this tutorial:
http://www.jetdv.com/2021/02/01/what-is-the-minimum-i-need-to-write-a-script-for-vegas/
If you send me a specific script, I’d be happy to create a tutorial on how to modify it from .js to .cs with full explanations. I can create a tutorial on that using some of my old scripts here as well.
Hello, here is the js script https://drive.google.com/file/d/0B0bNEG_bEepqT0pRTDdETy1BaHM/view?fbclid=IwAR1hyUrGBeXG8AAJ2Y4xzrRgsXSVqQMVVpRAJzgtzbAtwJ-g6eoz2wgn63Q
Hello, here is the js script https://drive.google.com/file/d/0B0bNEG_bEepqT0pRTDdETy1BaHM/view?fbclid=IwAR1hyUrGBeXG8AAJ2Y4xzrRgsXSVqQMVVpRAJzgtzbAtwJ-g6eoz2wgn63Q
Hello, yoru this script has bug. When I input folder : “E:\A\B”, It will render my “demo” mp4 file in “E:\A” with name “Bdemo.mp4”.
I cannot download that file from that link. I don’t have permission.
What if you change it to: “E:\A\B\” instead? It’s assuming the ending folder notation “\”. Alternately, the script could be modified to add the “\”.
Ok, I see the script now. Most of that script has already been converted if you go to Tools – Scripting – Batch Render. That script is based off of that Batch Render script and was modified to accept multiple VEG files.
C:\Program Files\VEGAS\VEGAS Pro 18.0\Script Menu\Batch Render.cs
Personally, I like the method used in this tutorial better in that you can choose all of the VEG files to be rendered at once instead of having to pick them one at a time and not being able to see which ones were previously picked (i.e. you might accidentally select one twice if you’re not careful) and you have have to make sure you uncheck that box when you’ve selected the last one or it will never start.
I am going to take one of my old .js scripts and create a tutorial on converting it to a .cs script, though, so the process can be demonstrated. I’ll take a look at this one too.
After looking at that old script (and it really is OLD) I don’t want to try converting it mainly because I don’t like the way it appears to work. I’m afraid of some of the issues that might result as I’m unsure of a couple of things I see in the script. I, personally, would prefer taking the techniques shown in these tutorials and modify them to actually do exactly what you’re wanting instead of trying to resurrect a script originally written in 2003. You might check with Steven Christy to see if he wanted to do the conversion as he’s the one that did the original changes. But, even though it’s a .js script, it will continue to run in current versions of VEGAS.
Hello, I want to write a extension to launch Vegas and then close Vegas normally (not kill Vegas process forcedly) and automatically, and without saving project. How to do it ? Thanks.
It seems InitializeModule can’t do that.
I want to do this to make a new computer generate DXcache and vst Cache so that I can change registry. ( If new computer not launch Vegas first before I change registry, the change will not function. )
Hi Edward
Can this scripts render for region name?
(I mean it can render multiple project and render each region with each region name)
@Johnny Chuang, you can change the naming however you wish it to name. Just change this line as desired:
string FullFileName = txtDirBox.Text + "Region " + myRegion.Index + " " + txtFileName.Text + myRenderer.FileExtension.Substring(1, 4);
You can change it to:
string FullFileName = txtDirBox.Text + myRegion.Label + " " + txtFileName.Text + myRenderer.FileExtension.Substring(1, 4);
@nar Imcuto, Use this procedure to exit Vegas:
String TempSave = "A path you can temporarily save to and then just delete the file - just make sure it's a valid path on your system or generate a temp file from Windows";
myVegas.SaveProject(TempSave); //Temporarily save the project
myVegas.NewProject(false, false); //Clear the timeline
myVegas.UpdateUI(); //Update the Vegas UI
File.Delete(TempSave); // Delete the temporary check file
myVegas.Exit(); //Exit Vegas