any example how to delete a cycles node?
with bpy or usng bpy.ops method
thanks
any example how to delete a cycles node?
with bpy or usng bpy.ops method
thanks
node_tree.nodes.remove(<i>node</i>)
so do you need to do it thought the mat nodes tree
or can it be done from the object mat list ?
and do we use the node name itself?
thanks
node_tree = bpy.data.materials['Material'].node_tree
node = node_tree.nodes['Diffuse BSDF']
node_tree.nodes.remove(node)
Doing it through the object list seems like the long way around.