Return Mouse XYZ coordinates

On 07/05/2017 at 11:00, xxxxxxxx wrote:

Hi Everyone!
I am struggling on how to get the Mouse Coordinates in the Viewport.
I can get the screen coordinates using the **GetLong(c4d.BFM_INPUT_X) and  ** GetLong(c4d.BFM_INPUT_Y)
But is there a way to get the projection XYZ coordinates in the ViewPort?

Thank you.

On 10/05/2017 at 10:53, xxxxxxxx wrote:

I hardly suggest you to read the documentation. Everything is explained.

https://developers.maxon.net/docs/Cinema4DPythonSDK/html/modules/c4d/C4DAtom/GeListNode/BaseList2D/BaseView/index.html?highlight=baseview#BaseView.GetViewParameter

On 12/05/2017 at 03:49, xxxxxxxx wrote:

Hello,

what exactly is the context of your question? Are you working on a tool? Mouse coordinates are always just X and Y. What kind of Z coordinate are you looking for? The BaseView class includes various functions to transform coordinates across Screen-, Camera- and World space, e.g. BaseView.WS().

best wishes,
Sebastian