sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Get Mouse x,y on "resume"

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 235 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Chris FullmerC Offline
      Chris Fullmer
      last edited by

      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

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        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?)

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement