Jump to content

Python module - create/delete nodes inside locked asset


papsphilip

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...