Is there a way to get the exact coordinates where you click on a mesh in python code? Faces can be big, so the vertices are not really good enough.
$\begingroup$
$\endgroup$
4
-
$\begingroup$ when you leftpress somewhere the 3d cursor moves to that place, and it snaps to suface, so you can get the 3d cursor location. $\endgroup$– Alex briesCommented Nov 5, 2020 at 22:43
-
$\begingroup$ That sounds perfect, but I'm really sure what the "3d curser" is. I can't see it in the view. Do you know how toI access it in python? $\endgroup$– DrDressCommented Nov 6, 2020 at 8:05
-
$\begingroup$ in 2.8 it is bpy.context.scene.cursor.location, see documentation for current python api: docs.blender.org/api/current/index.html $\endgroup$– Alex briesCommented Nov 6, 2020 at 16:49
-
$\begingroup$ related blender.stackexchange.com/questions/150267/… $\endgroup$– lemonCommented Nov 11, 2020 at 8:57
Add a comment
|