Skip to content

Instantly share code, notes, and snippets.

@crydalch
Created July 24, 2012 00:32
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save crydalch/3167162 to your computer and use it in GitHub Desktop.
Save crydalch/3167162 to your computer and use it in GitHub Desktop.
houBatch helper script
"""
A simple script to kick off a certain ROP remotely, optionally
with a given framerange.
Usage: hython path/to/script/houBatch.py /path/to/hipfile /hou/path/to/rop
TODO: Add options for multiple ROPs, hperf.
"""
import hou, sys
# Load the hip file
hou.hipFile.load(sys.argv[1])
# If framerange option, set it
#if sys.argv[3]:
# hou.parmTuple( "%s/f" %(sys.argv[2]) ).set((sys.argv[3],sys.argv[4],1.0))
# Start the render
hou.node(sys.argv[2]).render()
# When finished, exit
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment