If you're talking about doing this in python, there is a very useful code snippet at BA*. It's using old api calls, but the math behind it is still sound. I've successfully used it in Blender 2.5.
* http://blenderartists.org/forum/showthread.php?70881-Screen-coordinates-to-World-coordinates&p=653327&viewfull=1#post653327 2011/4/26 Yuniel Castro González <ycast...@estudiantes.uci.cu> > Hi. > I am programming an operator for blender. > I have seen the example templates but it is not enough. > With the events mouse_x and mouse_y I can capture the coordinates of a > click of the mouse pointer, but with regard to the screen. > How can I create a cube in the scene when giving a click with the mouse > pointer and that it leaves exactly where the click was given? > Thanks. > > -- > > > > > > > > > Yuniel > _______________________________________________ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers > _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers