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?


1 Answer 1


You should be able to do it like so:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .