Intersection Coords between mouse/mesh?

(Fog22) #1

Hi!
I’m quite new in python (not scripting) and I want to learn a bit more. So I thought the best way is to try to code some scripts.

I’m trying to create a Paint Geometry script for blender. I guess could be really useful tool to the community.

Here we go with the question:
- Is there a way to know the intersection coords between the mouse pointer and a mesh?

If I can get these coords I can start placing geometry :smiley:

Any help / tip would be awesome!
Thanks in advice!

0 Likes

(ideasman42) #2

see BPyWindow.py - it has a function that gets the mouse coords in 3d space.
the scrip uvcalc_quad_clickproj.py - look for mouseViewRay for example usage.

0 Likes

(Fog22) #3

Thank you very much ideasman42!!
I’ll have a look :smiley:

0 Likes