As for Pipeline purposes, I need to automate some parameters operation, when exporting / creating HDAs.
IE: Creating New Parameters, Creating Folders, Hiding Folders. (Just as we would do manually via ‘Type Properties –> Parameters’)
For example:
group = myHda.parmTemplateGroup()
group.hideFolder('Transform', True)
group.hideFolder('Subnet', True)
oFolder = hou.FolderParmTemplate('testFolder', 'Test Folder')
oParmTemplate = hou.StringParmTemplate('testParm', 'Test Parm', 1, 't')
oFolder.addParmTemplate(oParmTemplate)
group.append(oFolder)
myHda.setParmTemplateGroup(group)
That all seems to work well. IE: Transform and Subnet Folder are now hidden, ‘Test Folder’ is created with ‘Test Parm’ parameters. However, it didn't ‘update’ hda's nodeType. And when ‘Saving node type’, theses updates are all losts.
How can I update HDA's Folder/Parameters and parameters's value in order to still exists when hda is being saved, using scripting?
Just the way we would do using type properties –> Parameters interface…
Jonathan