-
-
Save jgwill/4eb2df856e758766ba6bf60cd0248360 to your computer and use it in GitHub Desktop.
houBatch helper script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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