myra Posted December 8, 2017 Share Posted December 8, 2017 i have a geo node and a object merge in side it on the geo node using edit parameter interface > from node tab > i can expose the object path attribute on the geo node but what would be a way to add object path of the object merge on the geo node using python Quote Link to comment Share on other sites More sharing options...
myra Posted December 8, 2017 Author Share Posted December 8, 2017 simple scene file to explain what i mentioned above object_merge.hipnc Quote Link to comment Share on other sites More sharing options...
f1480187 Posted December 8, 2017 Share Posted December 8, 2017 Try: node = hou.node('/obj/sphere') # Copy parameter from object merge. path_parm = node.parm('object_merge1/objpath1') ptg = node.parmTemplateGroup() ptg.append(path_parm.parmTemplate()) node.setParmTemplateGroup(ptg) # Copy value to promoted parameter. promoted_parm = node.parm('objpath1') promoted_parm.set(path_parm.eval()) # Set parameter reference. path_parm.set(promoted_parm) 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.