papsphilip Posted September 27, 2021 Share Posted September 27, 2021 how can i delete/create nodes in a locked hda from the python module? i am using a button with a callback script that runs a delete() function for n in node.children(): n.destroy(True) i get an error message that i don't have permissions because the asset is locked. Is there a way around this? callback_parm_kwargs_hda_node.hip Quote Link to comment Share on other sites More sharing options...
Drughi Posted September 27, 2021 Share Posted September 27, 2021 you will need to unlock it first. https://www.sidefx.com/docs/houdini/hom/hou/Node.html#allowEditingOfContents If it is your own hda you can also predefine it as editable using the node tab in the type properties. Quote Link to comment Share on other sites More sharing options...
papsphilip Posted September 27, 2021 Author Share Posted September 27, 2021 what do you mean predefine it as editable? in the node tab there is the "Editable Nodes" field, but that concerns a specific nodes inside the hda. i wanted a locked asset i can pass around to other creators where they would press a button and create a bunch of nodes, press another and delete them. without having access to the network inside. Quote Link to comment Share on other sites More sharing options...
Drughi Posted September 27, 2021 Share Posted September 27, 2021 (edited) This editable option is inherited to all children. So create a subnet in the hda and do the procedural creation inside the subnet. Edited September 27, 2021 by Drughi Quote Link to comment Share on other sites More sharing options...
papsphilip Posted September 27, 2021 Author Share Posted September 27, 2021 1 minute ago, Drughi said: This editable option is inherited to all children. So create a subnet in the hda and do the procedural creation inside the subnet. got it! thank you!! 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.