batch Rendering w "stretch to fill frame" option

SMP stone wrote on 10/14/2015, 11:56 AM
I've searched and cannot seem to find a script that adds the ability to check the "stretch to fill output frame size" to the batch render script. Can anyone tell me how to modify the batch render script to include this option? I would prefer not to have a new script, because I have already modified the script to rename the files to ProjectName_RegionName and would like to keep that functionality. But I would take any help at this point!

Comments

Warper wrote on 10/15/2015, 3:05 AM
I believe this checkbox is part of rendering template. Have you tried to use such templates in batch renderer?
SMP stone wrote on 10/15/2015, 9:57 AM
Unfortunately, the batch render tool does not have this option. You can only select a template, but the checkbox for Stretch to Fill is only in the Render dialogue GUI.
jetdv wrote on 10/17/2015, 10:28 AM
Here's some code you can use that I sent you in an e-mail earlier today:

You can replace "SetStretch" and "IncMarkers" with True or False. "start" is the timecode to start with the render while length is the timecode length of the render which can be set to new Timecode(0) if you wish to start at the beginning and the project length if you wish to render the entire project.


RenderArgs args = new RenderArgs();
args.OutputFile = fileName;
args.RenderTemplate = rndrTemplate;
args.Start = start;
args.Length = length;
args.IncludeMarkers = IncMarkers;
args.StretchToFill = SetStretch;

RenderStatus status = Vegas.Render(args);