I’m writing a little node based addon, pretty much based on the ‘custom nodes template’ in the blender text editor, works well, but i’m struggling responding to certain events in the node editor.
There’s a couple of things that can change.
Adding/Removing of nodes or node-links, when this happens, the nodetree’s update method is called, no problem here.
any custom properties in draw_buttons, you can set a callback in the property definition to get called when it changes, also no problem here.
Unlinked node sockets, when a socket is unlinked it shows a widget where the user gets to edit the default_value. Great! love it! But there is seemingly no way to get any notification when this happens
- Run the custom_nodes template in the text editor.
- Try to convince it to notify you when then “World” socket changes on MyCustomNode