Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
π« Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
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