[HDK] Create a new spare parameters inside an existing folder

   1782   1   0
User Avatar
Member
7 posts
Joined: Feb. 2006
Offline
Hello,
I have a little problem with the hdk. I have a custom node that create parameters dinamically (inside a button callback function). My parameters are correctly created on the node, but I would like to move those new spare parameters inside an existing folder. It's the same process you can do using the drag&drop inside the Edit Parameters Interface. I would like to do in in c++, but if there si no solution I could you also python. Ther is any solution?

Alan
User Avatar
Member
1 posts
Joined: May 2017
Offline
In python you could try:

node = hou.node('/out').createNode('ifd')
parm_group = node.parmTemplateGroup()
new_parm = hou.FloatParmTemplate("noise", "Noise", 1)
parm_group.appendToFolder(('Images', 'Extra Image Planes'), new_parm)
node.setParmTemplateGroup(parm_group)
  • Quick Links