0
$\begingroup$

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.

$\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 bries
    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$
    – DrDress
    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 bries
    Nov 6, 2020 at 16:49
  • $\begingroup$ related blender.stackexchange.com/questions/150267/… $\endgroup$
    – lemon
    Nov 11, 2020 at 8:57

0

You must log in to answer this question.

Browse other questions tagged .