I copy one object in Blender with python。but when I change the old object's color , the new object's color also change. I know that because the new object and the old object have the same material。my way is that:
obj = bpy.data.objects[old_object_name]
mesh = obj.data
new_obj = bpy.data.objects.new(name, mesh)
bpy.context.scene.objects.link(new_obj)
bpy.ops.object.make_single_user(object = True, obdata = True, material = True,texture = True )
I want to Separate the new object's material and the old object's material.when I change one object's color ,another object's color doesn't change. but my way doesn't work.