Comments

jetdv wrote on 11/20/2008, 6:59 AM
Can you give an example or two that are missing?
Harty wrote on 11/20/2008, 7:23 AM
Hi,
I'm using Vegas Pro8.
After setting up regions and selecting tools/scripting/batch render/main concept Mpeg2 I'm presented with the list of the standard templates for rendering. The problem is the list doesn't include the custom templates that I've set up via 'render as'. I've tried running the rescan script menu folder without result.
Thanks for your help.
jetdv wrote on 11/20/2008, 8:42 AM
Ok, as a test I just created a new MPEG2 preset and it did show up in Batch Render.

I then created another preset, included audio, but told it to save as elementary streams (i.e. a separate audio file). That one did NOT show up.

There's this code in the script:

                        // filter out templates that don't have
// exactly one file extension
String[] extensions = template.FileExtensions;
if (1 != extensions.Length) {
continue;
}


This removes any templates that have multiple file extensions. Do your presets have multiple file extensions? Perhaps if you gave more details it would help.

You may also try changing the script as follows. It just lists the presets no matter how many extensions it says it has - but you may not get the results you want...



                        // filter out templates that don't have
// exactly one file extension
String[] extensions = template.FileExtensions;
// if (1 != extensions.Length) {
// continue;
// }

Harty wrote on 11/20/2008, 9:42 AM
Just added the extra script, and the missing custom templates have appeared.

I've also run a small batch render and it's done exactly what I want.
Thanks for taking the time to help me out of this one jetdv, great stuff!