I am trying to do something as follows:
- Within the viewport
- Mouse cursor hover onto a pPlane for example (at any position)
- Prior to the mouse cursor/ position, as user clicks on their mouse, it will create a locator right at the mouse cursor position that user has specified
Optional : But I plan to include using modifier keys too, but for now I am trying to get the first 3 points working
To be honest, I have got no idea where to start. Could someone kindly enlighten me on this?
I tried searching online where some uses Maya API or cmds.draggerContext (Tried using the example in the docs but it is failing on me), and as I do not quite understand API, I was hoping if anyone can kindly guide me on what I should try proceeding