Having a node, I want to unlink it. My current approach is to clear all links from a desired NodeSocket:
I get a:
AttributeError: 'tuple' object has no attribute 'clear'
I would think that 'links' is a NodeLinks structure, which would have
'clear()' and 'remove()', but apparently no? I also can not simply
One approach I got working is:
for l in my_node.inputs.links: shader_node_tree_links.remove(l)
but is there a simpler way? Should one of my previous attempts work?