RUSH 3RD PARTY RENDER SCRIPTS
(C) Copyright 1995,2000 Greg Ercolano. All rights reserved.
V 102.40f 01/23/03

3rd Party Render Scripts
Houdini, Maya, Softimage, Renderman are all registered trademark names of their respective software manufacturer's products.

  Houdini Submit/Render Script  

    A simple example of separate submit and render scripts. To keep the examples simple, there's no frame batching or any fancy stuff.

    Change the red text to names relevant on your system.

      CSH: Houdini Submit Script
      #!/bin/csh -f
      
      # houdini-submit.csh
      
      ##############################
      #  S U B M I T  S C R I P T  #
      ##############################
                                                                                           
      rush -submit << EOF
          title      HOUDINI
          ram        1
          frames     1-20
          logdir     //tahoe/net/tmp/logs
          command    csh //path/to/houdini-render.csh MyScene
          cpus       +any=10@100
      EOF
      exit 0
              

      CSH: Houdini Render Script
      #!/bin/csh -f
      
      # houdini-render.csh
      
      ##############################
      #  R E N D E R  S C R I P T  #
      ##############################
      
      # Set up your houdini environment variables here
      
      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
              

  BMRT Submit/Render Script  

  Maya Submit / Render Script  

  Renderman Submit/Render Script  

  Softimage Submit/Render Script  
    A simple example of separate submit and render scripts. To keep the examples simple, there's no frame batching or any fancy stuff.

    Change the red text to names relevant on your system.

      CSH: Softimage Submit Script
      #!/bin/csh -f
      
      # soft-submit.csh
      
      ##############################
      #  S U B M I T  S C R I P T  #
      ##############################
                                                                                           
      rush -submit << EOF
          title      SOFTIMAGE
          ram        1
          frames     1-20
          logdir     //tahoe/net/tmp/logs
          command    csh //path/to/soft-render.csh
          cpus       +any=10@100
      EOF
      exit 0
              

      CSH: Softimage Render Script
      #!/bin/csh -f
      
      # soft-render.csh
      
      ##############################
      #  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 //tahoe/net/tmp/softproject
      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