Python
|
Introduction
When a script performs a "batch process" it does so by either: |
export RMANTREE=/Applications/Pixar/RenderManProServer-22.3 export MAYA_USER_DIR=$NETHOME/maya unset LD_LIBRARY_PATH "$RMANTREE/bin/prman" -cwd "H:/maya/projects/tech312" -t:all -progress "H:/maya/projects/tech312/renderman/rib/test/v001_t01/perspShape.0001.rib" "$RMANTREE/bin/prman" -cwd "H:/maya/projects/tech312" -t:all -progress "H:/maya/projects/tech312/renderman/rib/test/v001_t01/perspShape.0002.rib" "$RMANTREE/bin/prman" -cwd "H:/maya/projects/tech312" -t:all -progress "H:/maya/projects/tech312/renderman/rib/test/v001_t01/perspShape.0003.rib" |
The purpose of the "run_batch_render" script is to render a sequence of .rib files that have
been generated by Maya. The advantages of "off-line" rendering will be discussed in class.
The purpose of the two AlgorithmThe following algorithm, operating recipe, assumes the "make_batch_render.py" script has been saved in the same directory as ".rib" files that are intended to be batch rendered. However, the run_batch_render (or run_batch_render.bat) script that is generated by your python script MUST be saved in the current Maya project directory, for example, H:/maya/projects/tech312
1 determine the full path to the ribs directory, |