Tweak for Batch Renderer

Lightway wrote on 5/9/2003, 7:10 AM
Hi,
Can some one tell (or post) the required modification to the Batch rendered sample script that will use the region name in the outputed file name. ie

while (!regions.atEnd()) {
var region = regions.item();
var regionFilename = new StringBuilder(filename);
regionFilename.Append("[");
=====>>>> regionFilename.Append(regionIndex);
regionFilename.Append("]");
// need to strip off the extension's leading "*"
regionFilename.Append(renderer.FileExtension.substring(1));

Instead of regionFilename.Append(regionIndex); above it would be something like:

regionFilename.Append(Regions.currentregion.name); or something. I don't know the object model so I've go no idea what the property name is or how to get to it. Apparently there is a new version of the API summary out (an April 2003 version). Can someone send it to me or tell me where I can find it. and will it help me to be able to figure out the about info in the future.

Thanks
Dave

Comments

SonyPJM wrote on 5/9/2003, 9:02 AM
try:


...
regionFilename.Append(region.Label)
...
Lightway wrote on 5/9/2003, 9:05 PM
that worked fine. I did see Label in the API Summary - I should have just tried it....

Thanks
AudioNut wrote on 5/12/2003, 4:34 PM
I'm looking for someone who could write Wave batch render script. I use Vegas mostly for Audio Prod, and love it. But i have never written any scripts, and don't know the scripting language. Is anyone willing to write me a simple batch project to wave (Microsoft) script

AudioNut