Korchy (korchy) wrote,
Korchy
korchy

How to move cursor to vertex

To translate cursor to the desired mesh vertex execute the following code:
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.



Читать дальше: https://b3d.interplanety.org/en/how-to-move-cursor-to-vertex/
Tags: 2.81, api, blender, python, tips
Subscribe

Comments for this post were disabled by the author