Jump to content

batch-sim of DOP I/O with hython


borisb2

Recommended Posts

Hi.

 

I am setting up batch-simulations with houdini.

 

For all geometry-ROPs (particles, RBD) as well as mantra this workflow seems to work pretty well:

renderNode = hou.node(sys.argv[2])
renderNode.render(frame_range=(frameStart,frameEnd), verbose=True)

This will be called with a hython command and some args from the render-manager (sys.argv[2] is the path to the ROP ) .. so far so good.

 

But with volumes this doesnt seem to work. When setting up a pyro sim there's also the DOP I/O and DOP-Import node to visualize and render the volume.

 

Testing in python shell something like

"renderNode = hou.node('/obj/import_pyro_build/import_pyrofields')" reveals that there is no .render method available. So "renderNode.render()" can't work anymore and fails on the farm. Sure I could attach a Geometry-ROP to the DOP I/IO but that doesnt seem to be the right workflow.

 

What am I doing wrong? How do you cache out volumes with python? What about .sim files?

Edited by borisb2
Link to comment
Share on other sites

hmm.. I guess the answer is to not use DOP I/O for caching out but rather attach a ROP to the DOP-Import node and a file-node to read back the sim.

 

That seems to work on the farm and for render .. weird

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...