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

Save and restore cursor?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 506 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.
  • H Offline
    hsmyers
    last edited by 26 Jul 2016, 19:32

    I'd like to come back from using my tool with the previous cursor restored or lacking that switch to the nil cursor. I realize this implies a switch back to the previous tool selected. Is there some ruby API way to accomplish this?

    1 Reply Last reply Reply Quote 0
    • T Offline
      thomthom
      last edited by 27 Jul 2016, 15:35

      model.tools.push_tool(tool) model.tools.pop_tool

      http://www.sketchup.com/intl/en/developer/docs/ourdoc/tools#push_tool

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

      1 Reply Last reply Reply Quote 0
      • H Offline
        hsmyers
        last edited by 28 Jul 2016, 00:36

        @thomthom said:

        model.tools.push_tool(tool) model.tools.pop_tool

        http://www.sketchup.com/intl/en/developer/docs/ourdoc/tools#push_tool

        My thanks...and off to read the fine manual (err...what manual?) again ๐Ÿ˜‰ ๐Ÿ˜‰

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

        Advertisement