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

    Keep a tool running in the background?

    Scheduled Pinned Locked Moved Developers' Forum
    13 Posts 6 Posters 567 Views 6 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

      No

      Developer of LightUp Click for website

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

        Well there goes that great script idea πŸ˜„

        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

          Would it not be possible to overload the Tool class? Implement a new draw method which calls the old method and at the end do your own drawing?

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

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

            No, because as (I think you thomthom) discovered "All tools are equal, but some Tools are more equal than others" so there are Ruby tools which we mortals get to play with and extend and then there appears to be "Native code" tools that only those in swishy robes and working Boulder can play with. 😞

            And ultimately, its breaking the metaphor that we're being provided with. That of a sequence of: tool selection, tool use, tool disposal. The slight wrinkle introduced for the sake of usability in all this is the suspend/resume protocol in which the Orbit tool can be "semi-invoked" and then you return to the original tool.

            If you're going to turn it into a "feat of engineering" and beat it into submission then I guess you could hook the OpenGL updates somehow and slip in your commands just before the glFinish() - but at that point its just that - "a feat of engineering".

            Developer of LightUp Click for website

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

              I want a swishy robe...

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

              1 Reply Last reply Reply Quote 0
              • M Offline
                Matt666
                last edited by

                @unknownuser said:

                the Orbit tool can be "semi-invoked" and then you return to the original tool.

                Aaaah Adam!!!! HOW can I create a ruby that can be semi-invoked, pleeeeaaaaase?
                I asked for that here Some time ago...

                Thank you!

                Frenglish at its best !
                My scripts

                1 Reply Last reply Reply Quote 0
                • R Offline
                  remus
                  last edited by

                  From adams post i get the feeling the orbit tool is a special case in the sense it can be invoked while another tools is being run. i.e. i dont think you can semi-invoke any other tools.

                  http://remusrendering.wordpress.com/

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    Matt666
                    last edited by

                    Remus,
                    Actually all Zoom tools can be semi-invoked. Perhaps a special class...

                    @unknownuser said:

                    i dont think you can semi-invoke any other tools.
                    Aaar.... I hope you're wrong, Remus!! πŸ˜„
                    PS: Great new modelling challenge.. πŸ˜‰

                    Frenglish at its best !
                    My scripts

                    1 Reply Last reply Reply Quote 0
                    • fredo6F Offline
                      fredo6
                      last edited by

                      Actually all tools can be 'semi-invoked'.
                      The class Tools includes 2 methods: push_tooland pop_tool that can be used to suspend and resume tools.

                      Fredo

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

                        @unknownuser said:

                        Actually all tools can be 'semi-invoked'.
                        The class Tools includes 2 methods: push_tooland pop_tool that can be used to suspend and resume tools.

                        Fredo

                        That's interesting. I was wondering what those methods where for. Wish the manual clarified their use.

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

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

                          So, do you push your own tool into the stack, and then pop it when it's done? Or do you have to push and pop the currently active tool?

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

                          1 Reply Last reply Reply Quote 0
                          • fredo6F Offline
                            fredo6
                            last edited by

                            no clue. Never tried actually, but I guess it should help. So you should try it both ways to see what happens.
                            I use myself another technique to cascade tools, because I need more control.

                            Fredo

                            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