Welcome to od|forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

Sign in to follow this  
Followers 0
midicon

Multi-Container tool working on a farm

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    

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0