Batch Rendering
Prerequisites
Copy the file to the correct folder.
In order to do batch rendering with PresenZ you will have to make sure your presenZArnoldRenderer.xml
file is in the maya rendererDesc folder.
You can find the presenZArnoldRenderer.xml
in your PresenZ installation folder which by default is in C:\Users\userName\PresenZ\Maya2018\MtoA3.3.0\arnold_plugins_maya\renderDesc
please copy this file to your Maya rendererDesc folder C:\Program Files\Autodesk\Maya2018\bin\rendererDesc
.
Add a path to your environment variables.
Alternatively you can set up an environment variable in the Windows Environment Variables Settings pointing towards your PresenZ renderDesc folder, by default: MAYA_RENDER_DESC_PATH=C:\Users\userName\PresenZ\Maya2018\MtoA3.3.0\arnold_plugins_maya\renderDesc
.
Usage
When launching your render you will have to specify presenZArnold as the renderer. Where you would normally use the command -r arnold
you will use -r presenZArnold
.
The following is an example command for a PresenZ render using a Maya file with a PresenZ camera in the scene.
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
There are a couple of PresenZ specific command flags you can use, if you enter C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold -help
you will see the presenz specific flags listed.
phase_mode: When set to 0 will render the detect phase and the render phase.
stereo_mode: When set to 0 will render left eye only, 1 for right eye only, 2 for both eyes.
multibox_offset: by default set to 0 0 0 (3 Numbers with spaces), which translates to right top back. This flag will be needed for both phases, and both phases need the same resolution.
draft: When set to 1 will enable a draft render. Rendered only from the Centre of the ZOV.
merge: By default your render will be merged. Setting this flag with a value of 0 will not merge at the end of the render. Setting it to 1 will merge after render.
Example commands:
this command will render both phases and both eyes in one go:
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold -phase_mode 0 -eye 2 Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
for rendering just the detect phase.
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold -phase_mode 1 Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
for rendering just the render phase of the same file only the left eye.
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold -phase_mode 1 -stereo_mode 1 Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
rendering a multibox one ZOV over to the right
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold -phade_mode 0 -eye 2 -multibox_offset 1 0 0 Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
rendering animation version 1: if properly selected a frame range in the maya scene you will be able to just use the default command
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
rendering animation version 2: You can use the arnold flags to chose a frame range
C:\Users\PresenZ>"C:\Program Files\Autodesk\Maya2018\bin\Render.exe" -r presenZArnold -s 1 -e 10 Z:\SharedTestScene\MAYA_ARNOLD\testingPlugin.mb
You can use arnold commands like -rn path
to set the output and -im filename
to set the name of your file. In these cases make sure to include them in both phases.
For more commands regarding Arnold specifically, please use the Arnold batch rendering documentation: https://docs.arnoldrenderer.com/display/AFMUG/Batch+Render+Flags