bhavesh7393 Posted February 5, 2021 Share Posted February 5, 2021 Hi, How can I move default parameters like Translate, Rotate and Scale to a new folder with python? Like in Edit Rendering Parameters we can easily drag and drop any parameter, how to achieve that with the help of python? Quote Link to comment Share on other sites More sharing options...
bhavesh7393 Posted February 6, 2021 Author Share Posted February 6, 2021 with some experiments, I got it myself done. obj = hou.node('/obj') subnet = obj.createNode('subnet') subnet_tg = subnet.parmTemplateGroup() folder = hou.FolderParmTemplate('folder', 'Folder') trans = subnet_tg.find('t') rot = subnet_tg.find('r') scale = subnet_tg.find('s') subnet_tg.remove(trans) subnet_tg.remove(rot) subnet_tg.remove(scale) folder.addParmTemplate(trans) folder.addParmTemplate(rot) folder.addParmTemplate(scale) subnet_tg.append(folder) subnet.setParmTemplateGroup(subnet_tg) 1 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.