Skip to content

Instantly share code, notes, and snippets.

@lcrs
Created August 27, 2018 13:21
Show Gist options
  • Save lcrs/3d96240ca369a30e57a12f4d29f72cc2 to your computer and use it in GitHub Desktop.
Save lcrs/3d96240ca369a30e57a12f4d29f72cc2 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
# pass: /path/to/scene.hip ropname startframe endframe howmany threadseach
# e.g.:
# /works/useful/poast/hrender-multi.py /Volumes/fast/nissan/eye/eye_v08.hip mantra1 1 118 16 1
import sys, os, time
hipfile = sys.argv[1]
rop = sys.argv[2]
start = int(sys.argv[3])
end = int(sys.argv[4])
howmany = int(sys.argv[5])
threadseach = int(sys.argv[6])
for i in range(howmany):
cmd = "nice hrender -e -f %d %d -i %d -v -j %d -d %s %s &" % (start+i, end, howmany, threadseach, rop, hipfile)
print cmd
os.system(cmd)
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment