detect mouse position on 2D mesh [keystoners unite]

yair reshef's icon

im building (yet-another) projection mapping patch.
based on h.jit.homography (http://hons.at/software/) (thanks again hons)

now to make it nicer:
i would like to draw masks on the active skewed plane (currently i use jit.lcd alpha-glued on the mesh texture)
but i need to find the projected(?) position of mouse on relevant mesh to make it more intuitive.

Max Patch
Copy patch and select New From Clipboard in Max.

here ya go

yair reshef's icon