Jump to content

Python: Delete node


Recommended Posts

Hi everyone,

I try to delete a node with a python script but it doesn't work.

In sop, I have a geo node name "deleteMePython". There is also another geo node call "pythonScript" that have a python node inside.

That's the script that I used on the python "node":

pythonNode = hou.node("/obj/deleteMePython")
pythonNode.destroy()

I attached the simple file to show you what is it.

Thanks :D 

pythonDelete.hiplc

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...