Batch Render-Use Input filename as output filename

BrianOCarroll wrote on 2/18/2015, 5:11 AM
Hi,

I have found several resources that tell me how to use the region name/label in the output file name. I want to use the input FILE NAME for the region as the output filename when rendering. How can I access the region's input filename in the script?

As far as I know I need to edit this line:

String regionFilename = String.Format("{0}[{1}]{2}",
filename,
regionIndex.ToString(),
renderItem.Extension);

I think the version below is roughly what I want to do and I'm hoping that somebody can tell me how to get <Input Filename of Region>

String regionFilename = String.Format("{0}{1}",
<Input Filename of Region>,
renderItem.Extension);

I'm a Java programmer for many years, but am not well up on this language. I've looked up the scripting API but can't find the answer there.

Can it be done? Thanks, Brian

Comments

Warper wrote on 2/26/2015, 4:11 AM
These aren't the droids you are looking for.
Region has no input file name. It's a simple object with time start, length and name.
But, the filename variable in your example contains essential part of input file name for the file you are rendering.
You can tweak the part that forms a list of files.

Also if you have a reference for video event, you can get to media generator (event->takes->current take->media), that sometimes contains input file name