Jump to content

setJoinWithNext() does not work,,,


Hiro11

Recommended Posts

Hi,

I cant get the setJoinWithNext() to work when I made it few days ago.(setHelp,setDisableWhen works when I insert in it instead so,I am confused.)

Can someone guide me?

 

Thanks

Hiro

    for i in range(number):
        parm_tuple = node.parmTuples()[i]
        parm_template = parm_tuple.parmTemplate()
        parm_type = parm_template.type()

        if ((parm_template.name() == "execute") or
            (parm_template.name() == "renderdialog")
            ):
            pass
        elif ((parm_template not in node.parmTemplateGroup().entries()) and
              (parm_type != hou.parmTemplateType.FolderSet)
              ):

            group = node.parmTemplateGroup()
            folder = group.containingFolder(parm_template).label()  
            parent_node = parent  
            group = parent_node.parmTemplateGroup()

            folder = group.findFolder(folder)  
            next_bool = parm_template.joinsWithNext()
            parm_template.setJoinWithNext(next_bool)
            print(next_bool)
            group.appendToFolder(folder, parm_template) 
            parent_node.setParmTemplateGroup(group)

 

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