How to Batch Render in Houdini?

hbatch -c “render /out/mantra_ipr” myhoudiniscene.hiplc


export rendercmd="/opt/hfs18.0/bin/hbatch-bin"

export goal="Rendering # Fog receipe for "
export scene=fog_from_dropping_particle__02.hiplc
export renderer=/out/rendering
echo "$goal $scene"
$rendercmd -c "render $renderer" $scene

export goal="Rendering # acid drop generating smoke on surface hit"
export scene=dropped_water_icing__191227__02.hiplc
export renderer=/out/prepost__n__render
echo "$goal $scene"
$rendercmd -c "render $renderer" $scene

Usage: hbatch

Usage: hbatch [-R][-e name=value][-c ][-j nproc][-h][-i][-q][-v][file.hip …]

hbatch shell. This is the non-graphical interface to a hip
file. Type “help” for a list of commands.

Any number of .hip, .cmd, or .otl files may be specified on the
command line. Multiple .hip files are merged together.

The -e option sets the named enviroment variable to the given
value. There should be no spaces around the ‘=’ separator between
the name and value (i.e. -e foo=bar)

The -c option will run the option argument as an hscript command, after
the specified files have been loaded.

The -f option forces the use of asset definitions found in OTL
files specified on the command line.

The -j option sets the HOUDINI_MAXTHREADS to the given value.
The -h option shows this message
The -q option prevents the version information from being printed
The -w option suppresses load warnings and errors from being printed
The -v option specifies verbose handling of renders
The -i option uses a simpler interface for reading input
when running hbatch from other applications (like Pixar’s
Alfred), it may be necessary to use this option. Use of this
option will disable several commands (openport and atjob)
The -R option will request a non-graphics token instead
of a graphical one.

  To access MetaSyst data, you must be logged in.

1 thought on “How to Batch Render in Houdini?”

Leave a comment