How do I copy a node from a node_tree.nodes to another ?
In document, I see the copy
property, but when I call it from interpreter, It causes errors :
>> node = bpy.data.objects[0].data.materials[0].node_tree.nodes['Mix.001']
>>> node
bpy.data...nodes["Mix.001"]
>>> node.copy
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'ShaderNodeMixRGB' object has no attribute 'copy'
>>> node.copy()
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'ShaderNodeMixRGB' object has no attribute 'copy'
>>> node.copy(node)
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'ShaderNodeMixRGB' object has no attribute 'copy'
Document : https://docs.blender.org/api/2.79/bpy.types.Node.html#bpy.types.Node
My blender version is 2.79