sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Custom Tool - Allow user to manipulate selection?

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 2 Posters 164 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.
    • thomthomT Offline
      thomthom
      last edited by

      I'm making a tool that modifies the entities of the current selection. However, when the custom tool is activated you can't modify the selection.
      Is there a built-in feature to allow this? Or do I have to write my own selection methods - reinventing the wheel?

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

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        You have to write your own selection method. The good thing about it though is that you can pick how big the select window on the cursor is, so if your making this to paint lines with or something, you could make it more useable than SU's built paintbucket that does not like to paint lines.

        But it is a pain if you are just trying to re-create the existing selection tool. I have not done all of that before, I've just done single click and add the item to the selection set type selections. They are fairly easy.

        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

          No, this isn't the paint tool. This is for a little script I'm writing to save me some time on something I have to do at work. I need to modify the selection while my tool is active. Looks like I have to rewrite a whole selection tool... But at least that can be used for other plugins. Other plugins can extend the selection tool.

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

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            I'm pretty sure you need to re-write it. The only thing I can think of is there was a discussion a while ago about making other tools work like the orbit and pan tool, so they can be invoked while your tool is active, and not de0activate your tool. So you could try to do that with the selection tool, make it pass control to the selection tool without de-activating your script.

            I really don't remember who asked the question, but it seemed like RickW, AdamB, and maybe NewOne were involved in the conversation? Hmm, I don't recall. But I am thinking maybe it would be possible.

            I don't remember if "the magic" happens in the Tool.resume / Tool.suspend? or if it happens with the new .start_operation flags? Or what it was, but there was a conversation about it....sorry I can't give any better specifics. Maybe someone else knows what I'm remembering.

            Chris

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

            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