I need to draw a circle that follows the mouse cursor in the view. I suppose it can't just be done as a cursor itself, because I need to be able to change the circle's radius through the UI.
The first thing, of course, is to find a way to get the mouse coordinates whenever it moves. I've searched the web, and found some thread in which they say the code needs to be inserted between the operating system and maya in order to catch the mouse move events, but I don't want to do that.
I've seen the solution in which the context creates a temporary transform node, whose coordinates are changed by moving the mouse around. Does anyone have an idea as to how this could be implemented? Any help is appreciated.