Rendering in VEGAS – Rendering Multiple Projects – Part 5

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.

19 thoughts on “Rendering in VEGAS – Rendering Multiple Projects – Part 5”

  1. 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.

  2. 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 “\”.

  3. 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.

  4. 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.

  5. 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. )

  6. @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);

  7. @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

Leave a Reply