Jump to content

Multi-Container tool working on a farm


midicon

Recommended Posts

Hi Guys,

I'm trying to get a tool that I created to render on a farm. It's a multi-container sim tool for volumes.  All the tool is, is a ROP Geo node in a subnet that I tell to iterate over a sop output. I give it a min and a max and a current iteration value. This is the Code:

def render():
    node = hou.pwd()
    min = node.evalParm('from')
    max = node.evalParm('max')
    sop = hou.node(node.evalParm('soppath'))
    for n in range(min,max):
        node.setParms({'current':n})
        print node.evalParm('current')
        sop.cook()
        hou.parm(node.path()+ '/sim/execute' ).pressButton()  

 

It works locally beautifully, but when I submit it to a farm it just sim's the same "current" iteration, over and over not iterating as it does locally. I imagine the farm runs the render command and then once it's finished it runs the entire function again (but I could be wrong) instead of running through the loop. or its just not iterating the current value. Sorry if this is a bit vague. Does anyone have any experience with this stuff I would love a little help.

Thanks

Rob    

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...