How to edit parameter interface of a node to add existing parameters to a "FolderParmTemplate" using houdini python?

   2907   1   0
User Avatar
1 posts
Joined: July 2019
Hi I am trying find a way to edit parameter interface to copy parameters “from node” using houdini python. So far I have found how to to add a int,float and string by using FloatParmTemplate,IntParmTemplate and IntParmTemplate command. But could not find a way to copy parameters which exists in that node to a new folder. Manually I can do it by right clicking on the parameter and click “install parameter” which will copy and move the parameters to the right side section. Any help will be appreciated.

parm_group = node.parmTemplateGroup()
parm_folder = hou.FolderParmTemplate('MyParm', ‘My Parm’)
parm_folder.addParmTemplate( what???????) # For instance If I were to copy the Exposure attribute of the selected light?
User Avatar
452 posts
Joined: Feb. 2013
parmtemplate = hou.parm(hou.pwd().path()+“/myParm”).parmTemplate()
parm_folder.addParmTemplate( parmtemplate)

You can do something like that^, I think. (Adjust the myParm part).
  • Quick Links