Intersection Coords between mouse/mesh?

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!

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

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