APG Posted November 16, 2016 Share Posted November 16, 2016 hello,I would like to use python to move a parameter to a folder. What functions do I need to use? please help me,thanks. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted November 16, 2016 Share Posted November 16, 2016 import hou node = hou.node('/obj/geo1') parm_name = 'someparm' folder_name = 'Misc' tgroup = node.parmTemplateGroup() tgroup.remove(parm_name) tgroup.appendToFolder(tgroup.findIndicesForFolder(folder_name), node.parm(parm_name).parmTemplate()) node.setParmTemplateGroup(tgroup) 1 Quote Link to comment Share on other sites More sharing options...
APG Posted November 16, 2016 Author Share Posted November 16, 2016 1 hour ago, f1480187 said: import hou node = hou.node('/obj/geo1') parm_name = 'someparm' folder_name = 'Misc' tgroup = node.parmTemplateGroup() tgroup.remove(parm_name) tgroup.appendToFolder(tgroup.findIndicesForFolder(folder_name), node.parm(parm_name).parmTemplate()) node.setParmTemplateGroup(tgroup) thank you very much Can only be deleted and then added Unfortunately there is no move function. 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.