Linux rendering from a bash script

   1016   2   0
User Avatar
Member
13 posts
Joined: Dec. 2017
Offline
I'm trying to make a linux script that opens a Houdini file, renders a 100 frame sequence with Renderman 23 and then uploads the files to a server.

I'm using this hscipt line in my script:

hbatch -c "opparm /obj/rubber id 1 ; render -f 1 100 -V1a /out/risdenoise ; quit" "/home/render.hiplc"

after the first frame renders, it saves the file, and then the render quits without rendering anymore frames

if I delete the “quit” part:

hbatch -c "opparm /obj/rubber id 1 ; render -f 1 100 -V1a /out/risdenoise" "/home/render.hiplc"

Then it renders all 100 frames and then denoises them. Except the problem is that the hscript never quits after the render finishes so my bash script cant upload the files.

Does anyone know how to fix this?
User Avatar
Member
13 posts
Joined: Dec. 2017
Offline
Found a very simple workaround just added the “quit” command to the post render script inside the houdini file instead
User Avatar
Member
648 posts
Joined: July 2005
Offline
try putting commands in separate strings:
/path/to/hbatch -c "render -V -f 1 100 /out/mantra1" -c  "quit" /path/to/hipfile/render.hip
  • Quick Links