Morrorz Posted March 27, 2021 Share Posted March 27, 2021 (edited) 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) Edited March 27, 2021 by Morrorz Quote Link to comment Share on other sites More sharing options...
underscoreus Posted March 28, 2021 Share Posted March 28, 2021 After you run "node.setParmTemplateGroup(parm_group)" command the parameter is already by default added to the "root" parameter folder of the node. Is there a specific reason why you are moving it to the transform folder? Quote Link to comment Share on other sites More sharing options...
Morrorz Posted March 29, 2021 Author Share Posted March 29, 2021 (edited) 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. Edited March 29, 2021 by Morrorz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.