tcomputerchip
02-20-2006, 04:12 AM
I am having problems with MentalRay rendering the images to there proper folders in the "images" folder, the should render to "images/FRONT" and "images/BACK" folders then with there proper layers.
Both Lines render to the same folder "images" and the "-rd" option seems to not be working with the "Render" command. When I used "maya -batch" with the maya software render it worked fine. Now I am pipeing things into mentalray and things seem to have broke.
Any suggestions would be very helpful, thanks in advance.
This is the render.sh script,
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=24
e_frame=24
rendertype=mr ## mr, hw, sw, vr
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 " Debug Level : $debug"
echo ................... RUNNING SCRIPT ..............
#RENDER BACK WITH OCCLUSTION, AMBIENT, SPEC, DIFFUSE
$renderprog -r $rendertype -proj $proj_dir -cam SHOT_CAM -s $s_frame -e $e_frame -v $debug -rl true -rd $proj_dir/images/FRONT $infile
#RENDER BACK WITH OCCLUSTION, AMBIENT, SPEC, DIFFUSE
$renderprog -r $rendertype -proj $proj_dir -cam REV_SHOT_CAM -s $s_frame -e $e_frame -v $debug -rl true -rd $proj_dir/images/BACK $infile
Both Lines render to the same folder "images" and the "-rd" option seems to not be working with the "Render" command. When I used "maya -batch" with the maya software render it worked fine. Now I am pipeing things into mentalray and things seem to have broke.
Any suggestions would be very helpful, thanks in advance.
This is the render.sh script,
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=24
e_frame=24
rendertype=mr ## mr, hw, sw, vr
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 " Debug Level : $debug"
echo ................... RUNNING SCRIPT ..............
#RENDER BACK WITH OCCLUSTION, AMBIENT, SPEC, DIFFUSE
$renderprog -r $rendertype -proj $proj_dir -cam SHOT_CAM -s $s_frame -e $e_frame -v $debug -rl true -rd $proj_dir/images/FRONT $infile
#RENDER BACK WITH OCCLUSTION, AMBIENT, SPEC, DIFFUSE
$renderprog -r $rendertype -proj $proj_dir -cam REV_SHOT_CAM -s $s_frame -e $e_frame -v $debug -rl true -rd $proj_dir/images/BACK $infile
