As far as I know, you can run a command in the bar button to remove animation node trees. But I would like to automate this with another script, for rigging purposes.

This doesn't work:


As far as I know, there is an error Invoking the right window?

Any clue how to script this?


You should be able to do it like so:

bpy.data.node_groups.remove(bpy.data.node_groups["tree name"])

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.