I am trying to duplicate a mesh object using python. After duplication I try to change the duplicated object's mesh, but the original object's mesh also changes.
Seem like both objects have the same mesh. How can I also duplicate the mesh?
Here is some Code:
>>> obj1 = bpy.data.objects['Cube'] >>> obj2 = obj1.copy() >>> bpy.context.collection.objects.link(obj2) >>> obj1.location = Vector((3,0,0)) >>> obj2.animation_data_clear() >>> ve = obj2.data.vertices >>> ve.co = ve.co*2