Jump to content

Morrorz

Members
  • Content count

    8
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Posts posted by Morrorz


  1. I have Subnet node name is "subnet1".

    In "subnet1" i have ROP node.The same name as subnet is "subnet1".

    When i change my subnet name change the my ROP name too.

    How to write in "On Name Change" python ?

     

    Thank you.


  2. import hou
    #CreateNode
    root = "/obj"
    node = hou.node(root).createNode("geo" , "test")
    #ParmGRP
    parm_group = node.parmTemplateGroup()
    parm = hou.IntParmTemplate("testParm", "TestParameter"  , 1)
    #ParmAppend
    parm_group.append(parm)
    node.setParmTemplateGroup(parm_group)

    #Move To Tranform Folder()
    parm_group.remove("testParm")
    parm_group.appendToFolder(parm_group.findIndicesForFolder("Transform"),node.parm("testParm").parmTemplate())
    node.setParmTemplateGroup(parm_group)

    #################### MOVE TO ROOT #######################

    #################### ERROR #######################

    parm_group = parm_group
    parm_group.remove("testParm")
    #parm_group.appendToFolder(parm_group.findIndicesForFolder("Misc"),node.parm("testParm").parmTemplate())
    parm_group.appendToFolder(parm_group.findIndicesForFolder("root"),node.parm("testParm").parmTemplate())
    node.setParmTemplateGroup(parm_group)

    01.png

×