|
Example Render Scripts |
In actual practice, all these softimage variables should be sourced
from a centrally located file maintained by your sysadmin.
In this example the softimage variables are sourced from the softimage
directory. This script is untested.
BMRT Script
Simple
This is the simplest BMRT render script example; no batching or fancy stuff.
This script is untested.
#!/bin/csh -f
##############################
# R E N D E R S C R I P T #
##############################
# BMRT environment
setenv BMRTTREE "/usr/local/BMRT"
setenv PATH "${PATH}:${BMRTTREE}/bin"
echo "--- Working on frame $RUSH_FRAME - `date`"
### YOUR RENDER COMMAND(S) HERE
cd /jobs/MYJOB/bmrt-ribs
rendrib myshot.${RUSH_PADFRAME}.rib
set err = $status
# Rush exit codes: 0=DONE 1=FAIL 2=RETRY
if ( $err ) then
echo --- FAIL; exit 1
else
echo --- DONE; exit 0
endif
Houdini Render Script
Simple
This is the simplest houdini render script example; no batching or fancy stuff.
This script is untested.
#!/bin/csh -f
##############################
# R E N D E R S C R I P T #
##############################
# Source your render enviornment as needed
echo "--- Working on frame $RUSH_FRAME - `date`"
### YOUR RENDER COMMAND(S) HERE
set ren = $1
hscript /jobs/MYJOB/hip/mytest.hip << EOF
opcf /out
echo setting visibility
opscript $ren > $tmpdir/set_vis_in.$$
opparm $ren trange ( on ) f ( $RUSH_FRAME $RUSH_FRAME 1 )
opparm $ren background ( off )
echo opparm $ren background ( off )
render -V $ren
quit
EOF
set err = $status
# Rush exit codes: 0=DONE 1=FAIL 2=RETRY
if ( $err ) then
echo --- FAIL; exit 1
else
echo --- DONE; exit 0
endif
Maya Render Scripts
Simple
This is the simplest maya render script example; no batching or fancy stuff.
Resolution values are specified within the render script (-x 640 -y 480),
as are the project and database paths.
This script is untested.
#!/bin/csh -f
##############################
# R E N D E R S C R I P T #
##############################
# Source your render enviornment as needed
setenv AW_LOCATION /usr/aw
setenv MAYA_LOCATION $AW_LOCATION/maya3.0
echo "--- Working on frame $RUSH_FRAME - `date`"
### YOUR RENDER COMMAND(S) HERE
/usr/aw/maya3.0/bin/Render \
-proj /jobs/MYJOB \
-b 1 \
-x 640 -y 480 \
-s $RUSH_FRAME \
-e $RUSH_FRAME \
-rd /jobs/MYJOB/img/rush scene_17a_v2.ma
set err = $status
# Rush exit codes: 0=DONE 1=FAIL 2=RETRY
if ( $err ) then
echo --- FAIL; exit 1
else
echo --- DONE; exit 0
endif
Renderman Render Script
Simple
This is the simplest renderman render script example; no batching or fancy stuff.
This script is untested.
#!/bin/csh -f
##############################
# R E N D E R S C R I P T #
##############################
# Source your render enviornment as needed
echo "--- Working on frame $RUSH_FRAME - `date`"
### YOUR RENDER COMMAND(S) HERE
render /jobs/MYJOB/ribs/myshot.${RUSH_PADFRAME}.rib
set err = $status
# Rush exit codes: 0=DONE 1=FAIL 2=RETRY
if ( $err ) then
echo --- FAIL; exit 1
else
echo --- DONE; exit 0
endif
Softimage Render Scripts
Simple
This is the simplest Softimage render script example; no batching or
fancy stuff.
#!/bin/csh -f
##############################
# R E N D E R S C R I P T #
##############################
# Softimage environment variables
#
source /usr/Softimage3.9/.softimage39
setenv SI_CUSTOM_REFINE_TEMP_PATH ${RUSH_TMPDIR}
setenv PARTICLE_TMPDIR ${RUSH_TMPDIR}
echo "--- Working on frame $RUSH_FRAME - `date`"
### YOUR RENDER COMMAND(S) HERE
setenv SI_DBDIR /job/MYJOB/renderscripts
soft -R BallCueTst_01.1-0.dsc \
-d Test \
-s ${RUSH_FRAME} ${RUSH_FRAME} 1
set err = $status
# Rush exit codes: 0=DONE 1=FAIL 2=RETRY
if ( $err ) then
echo --- FAIL; exit 1
else
echo --- DONE; exit 0
endif
Untested Scripts
Untested scripts are edited down versions of customer's actual
render scripts, with their local environment complexities removed.