Jump to content

Morrorz

Members
  • Content count

    8
  • Donations

    0.00 CAD 
  • Joined

  • Last visited

Everything 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. How to python rename node in subnet

    Have exemple for me please !! hou.node("/subnet1").addEventCallback((hou.nodeEventType.NameChanged, ), name_changed) it's error sir
  3. I look at here. I want do color parameter How to do this sir Thanks https://www.sidefx.com/forum/topic/50408/?page=1#post-227213 How to do it ???? Create Color this text vvvvvvvvvvvv vvvvvvvv vvvvvv vv v
  4. How to move parameter to root Python !!

    thanks very much #Martin Brattensborg I want try move Translate,Rotate,Scale etc in Tranform Folder to Root sir. Now i still can't do it.
  5. 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)
  6. Thank you sir. Martin Brattensborg.Peon I just wonder parameter Can i change colour in python ? I seen this link : https://www.sidefx.com/forum/topic/50408/?page=1#post-227213 He can change colour input node.I wanna try change parameter colour but them can't ahahaha.
  7. Can i addSection("PythonModule") sop null How i create "PythonModule" in sop null or sop geo with python georoot = "/obj" geo = hou.node(georoot).createNode("null" , "test") pm_section =geo.type().definition().addSection("PythonModule") pm_section.setContents("your_python_module_contents") But : hda worked myref : https://www.sidefx.com/forum/topic/61047/
×