Jump to content
Sign in to follow this  

Proper Way of Replacing a Node's Interface

Recommended Posts


I need to replace the interface of the houdini rop network with my own panel. I use it for sending renders to farm etc. I use the 'oppresetload' to load my property page to the node itself. The issues come when i want to change a few thing on the interface by a python script ( parameter labels and script callback of buttons -> see script bellow ).  The issues are: folder conditional strings are cleared, some parameter type changes ( button strip ).

My question is:

What is the proper way of replacing a node's interface without Digital Asset ?




Label change:

                ptg = parm_obj.parmTemplateGroup()
                parmname = 'active'
                pt = ptg.find( parmname)
                if is_sim == '1':
                    # pt.setLabel('Active / [ SIM ]  /  '+self.version)
                elif is_sim == '0':
                    # pt.setLabel('Active / [ RENDER ]  /  '+self.version)
                ptg.replace( parmname, pt)

button Callback change Script :


        parm_obj = rop
        ptg = parm_obj.parmTemplateGroup()
        pt = ptg.find( parm)
        pt.setScriptCallback( script)
        ptg.replace( parm, pt)


Edited by gemini

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