Hython crashes when open files in a loop

   2394   1   1
User Avatar
Member
295 posts
Joined: 10月 2008
Offline
I'm trying to render a series of files like so:

for i in range(1,17) :
s = “shot_%d_v1.hipnc” % (i)
print “attemping to load ” + s
hou.hipFile.load(s)
mantra = hou.node(“/out/opengl1”)
mantra.render(verbose=True)

After it finishes the first file it crashes. I've run into a similar thing with hscript. Is this not possible?

Hscript example
for i = 1 to 16
mread shot_`$i`_v1.hipnc
render -V /out/opengl1
end

I found examples on the forum that suggested you could do:

mread shot_1_v1.hipnc
render -V /out/opengl1

mread shot_2_v1.hipnc
render -V /out/opengl1

and so so on. Those also crash.
Houdini Models [learning3dfromscratch.blogspot.com]
User Avatar
スタッフ
1283 posts
Joined: 7月 2005
Offline
The code looks fine. It should be possible to render different .hipnc files in the same hython session.

If you can reproduce the crash consistently then I suggest submitting a bug report to SideFX support. Be sure to include a test .hip file and/or python script as well as the crash log.

Cheers,
Rob
  • Quick Links