gweiss Posted October 2, 2019 Share Posted October 2, 2019 (edited) In a test scene I have a sphere node inside a geo node inside a subnet node I want to promote the sphere node parameters to the subnet node with this code I'm getting an error: The attempted operation failed. Invalid indices/name/parm template import hou #get pTGroup on node node = hou.node('obj/subnet1') ptg = node.parmTemplateGroup() #create new folder in group sphereFolder = houFolderParmTemplate('sphr', 'sphere', folder_type=hou.folderType.Simple) ptg.addParmTemplate(sphereFolder) node.setParmTemplateGroup(ptg) #find inner sphere node sph = hou.node('obj/subnet1/sphere_object1/sphere1') #get pTGroup on sphere node sphG = sph.parmTemplateGroup() #promote the parameters of sphere node to upper node (subnet1) sphere_folder = ptg.findFolder("sphere") for i in sphG.entriesWithoutFolders(): ptg.appendToFolder(sphere_folder, i) node.setParmTemplateGroup(ptg) what am I doing wrong? Edited October 3, 2019 by gweiss Quote Link to comment Share on other sites More sharing options...
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.