Linux rendering from a bash script
998
2
0
imagee
Member
13 posts
Joined: Dec. 2017
Offline
May 8, 2020 6:03 p.m.
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?
imagee
Member
13 posts
Joined: Dec. 2017
Offline
May 9, 2020 4:09 p.m.
Found a very simple workaround just added the “quit” command to the post render script inside the houdini file instead
May 10, 2020 2:40 a.m.
try putting commands in separate strings:
/path/to/hbatch -c "render -V -f 1 100 /out/mantra1" -c "quit" /path/to/hipfile/render.hip