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?)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement