To translate cursor to the desired mesh vertex execute the following code:
1 |
bpy.context.scene.cursor.location = bpy.context.object.matrix_world @ bpy.context.object.data.vertices[_VERTEX_NUMBER_].co |
Attention to the multiplication order – world matrix should be left.