I'm trying to move a shape. The shape is in the scene at the end of the script. But it does not move, as the bmesh.ops.translate() seems to be doing nothing.
# A new mesh bm = bmesh.new() # Make a circle bmesh.ops.create_circle( bm, cap_ends = True, # Fill with faces cap_tris = True, # Triangles diameter = 2, segments = 6 ) # This should move the shape but its not # I'm missing something? bmesh.ops.translate( bm, vec = (5 ,5 , 0) ) # "write the bmesh into a new mesh" mesh = bpy.data.meshes.new('Mesh') bm.to_mesh( mesh ) # Add the mesh to the scene scene = bpy.context.scene hexagon = bpy.data.objects.new("Hex", mesh) scene.objects.link( hexagon )
The object appears at the center of the scene.
How can I get this thing to move somewhere else?