PDA

View Full Version : render layer flag for Mental ray command line ?


helicopterr
05-22-2005, 09:54 PM
Hi. For mental ray for maya, is it possible to specify which render layer to render in command line? I have looked at the documentation but render layers is not specified for Mental ray. Any ideas?

tcomputerchip
05-20-2006, 07:24 AM
-r mr
-rl LayerName

That should work, the -r tells it to be mental ray,
the RenderLayer (rl) set to true will render all layers with an "R" next to it.

here is my bash script:

## this is the path to your rendering software Render.exe on PC
renderprog=/Applications/Alias/maya7.0/Maya.app/Contents/bin/Render
proj_dir=/Volumes/EDITING_02/work_extra/vinny/vfx_shot_2_1_1/maya
infile=bottlecap_animation.ma
s_frame=1
e_frame=120
rendertype=mr ## mr, hw, sw, vr
rl=true ## true, or layer name
debug=3

#-v int Set the verbosity level.
#0 for fatal errors only
#1 for all errors
#2 for warnings
#3 for progress report
#4 for informational messages
#5 for debugging messages
#6 for detailed messages
echo .................................................
echo " Render Type : $rendertype"
echo " Project : $proj_dir"
echo " Scene : $infile"
echo "Start @frame : $s_frame"
echo " End @frame : $e_frame"
echo " User : $USER"
echo " RENDER LAYER: $RL"
echo " Debug Level : $debug"
echo ................... RUNNING SCRIPT ..............

$renderprog -r $rendertype -proj $proj_dir -cam SHOT_CAMShape -s $s_frame -e $e_frame -v $debug -rl $rl -im FRONT/%/lFRONT_%l%.4n%.e $infile

CGTalk Moderation
05-20-2006, 07:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.