📋 Metadata

💬 Content

BlenderBob:

I found what the problem is. If I drag to select the vertex, even if I only pick one, it won’t work. If I just select one vertex, then it’s ok.

Try this code instead:

bpy.ops.view3d.snap_cursor_to_selected(); bpy.ops.object.mode_set(mode='OBJECT'); bpy.ops.object.origin_set(type='ORIGIN_CURSOR'); bpy.ops.object.mode_set(mode='EDIT')

🔗 View on Blender Artists