sketchucation logo sketchucation
    • Login
    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

    Proxy Tools

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 389 Views 3 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.
    • AdamBA Offline
      AdamB
      last edited by

      I'm sure this one has been discussed before, but I can't find the thread..

      I know we mere mortals cannot create instances of the standard SU tools, but can we delegate messages to them?

      I'm think it would be neat to have a custom tool be able to have mode where it was just acting as a Proxy and forwarding all onLButtonDown/onMouseMove etc to another tool.

      Adam

      Developer of LightUp Click for website

      1 Reply Last reply Reply Quote 0
      • tbdT Offline
        tbd
        last edited by

        what is the difference in creating a tool and handling the buttons/movement/keyboard ?

        SketchUp Ruby Consultant | Podium 1.x developer
        http://plugins.ro

        1 Reply Last reply Reply Quote 0
        • P Offline
          psychomuffin
          last edited by

          When you say create instances of the the standard SU tools, it makes me think of the custom toolbar script. You can make a toolbar with any of the original SU commands, in any order, combo, even put the little verticle breaks where you want. I forget the link, its somewhere here. I'm not sure if this is what you're asking though.

          1 Reply Last reply Reply Quote 0
          • AdamBA Offline
            AdamB
            last edited by

            I mean I want to create a tool that code-wise looks like this:

            class MyProxyTool
            
              def onMouseMove(flags, x, y, view)
                <pseudo-code> 
                   call the SU movetool with (flags,x,y,view) arguments 
                </pseudo-code>
              end
            
              .. and so on ..
            end
            

            So its a tool that just passes everything onto the Movetool (for example) to allow it to "do its stuff".

            Does that make sense?

            Adam

            Developer of LightUp Click for website

            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