π‘ LightUp 7.1 | SketchUp's only real-time renderer that uses object-based rendering
Download Trial
Get Mouse x,y on "resume"
-
I am working on a tool, and I would like to get the screen position of the mouse after the tool has been suspended. So I set up a Tool.resume method, but I can't think of any to get the mouse position updated. Any ideas?
- A little more background if it helps. I am drawing some rubberband-like lines from the cursor. As the user rotates while my tool is active, this supends my tool. But when they stop rotating, my tool resumes and redraws the rubberband lines. But it redraws tham in the wrong place because it still only has the mouse position from prior to the user orbiting. So my rubber band lines are in the wrong spot until after the user moves the mouse. Its not a huge problem, but I would like to look right if possible. Thanks!
Chris
-
Don't think you can. It's one of the several annoying limitations of the Tool class.
(Why doesn't activate return an view argument?)
Advertisement