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

    [Plugin] Recall last tool v1.2

    Scheduled Pinned Locked Moved Plugins
    60 Posts 28 Posters 60.1k Views 28 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.
    • J Offline
      jdtsmith
      last edited by

      Just an FYI for any Mac users. Pecan's version above with the "exceptions" list works fine for me in SU 8.0. I use it with BetterTouchTool and a Magic Trackpad:

      • Three Finger TipTap Left: Orbit (O)
      • 3 Finger Tip Tap Right: Recall Last Tool (which I have as F2)
      • Pinch Out: Zoom Extents (I have as Shift-Z)

      This plugin, with Lion's native three finger dragging make using SU with the trackpad much more enjoyable. Here's how I use it:

      • Two finger "scroll": zooms in and out
      • 3 Finger move: same as click and drag for selection
      • Tip Tap Left (drop two fingers and tap another to the left): switch to orbit tool
      • Tip Tap Right: switch back to whichever tool I'm in the middle of using
      • Get Lost? Pinch to Zoom Out

      Thanks to the plugin's authors!

      1 Reply Last reply Reply Quote 0
      • A Offline
        alex_picas
        last edited by

        Hi Matt. Recall command of autocad is good too. Can you do other 'last tool recall' version like autocad with using only a space bar? Thanks Matt.

        1 Reply Last reply Reply Quote 0
        • O Offline
          Omaha
          last edited by

          In this case, I want to say that for sure, Thank you. You saved the day.

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

            Makes SU Make 2017 (Windows) crash.

            1 Reply Last reply Reply Quote 0
            • CadFatherC Offline
              CadFather
              last edited by

              mmm... works fine with me - is it wrapped in a module?

              
              require 'sketchup.rb'
              
              module MATT_Recall
              
              
              class Matt_Observer < Sketchup;;ToolsObserver
              
              	@@Matt_Model_Toolid = nil
              	@@Matt_Model_Toolid2 = nil
                
              	def onActiveToolChanged (tools_object, toolname, toolid)
              		@@Matt_Model_Toolid = @@Matt_Model_Toolid2 if @@Matt_Model_Toolid2
              		@@Matt_Model_Toolid2 = toolid if not([10508].index toolid)
              	end
                
                
              	def self.recall_last
              		if @@Matt_Model_Toolid
              			return Sketchup.send_action(@@Matt_Model_Toolid)
              		else
              			puts "No tool used before."
              			return Sketchup.send_action("selectSelectionTool;")
              		end
              	end
                
                
              end  #class
              
              Sketchup.active_model.tools.add_observer(Matt_Observer.new)
              
              	
              unless file_loaded?(__FILE__)
                 UI.menu('Edit').add_item("RECALL LAST TOOL"){ Matt_Observer.recall_last }
              	file_loaded(__FILE__)
              end
              
              end#module
              
              
              
              1 Reply Last reply Reply Quote 0
              • CadFatherC Offline
                CadFather
                last edited by

                just in case anyone else asks, the following is totally fine on my pc:

                
                require 'sketchup.rb'
                
                module MATT_Recall
                
                class Matt_Observer < Sketchup;;ToolsObserver
                
                	@@Matt_Model_Toolid = nil
                	@@Matt_Model_Toolid2 = nil
                  
                	def onActiveToolChanged (tools, tool_name, tool_id)
                    puts "Tool Used; #{tool_name}"
                		@@Matt_Model_Toolid = @@Matt_Model_Toolid2 if @@Matt_Model_Toolid2
                		@@Matt_Model_Toolid2 = tool_id if not([10508].index tool_id)
                	end
                 
                
                	def self.recall_last
                		if @@Matt_Model_Toolid
                			return Sketchup.send_action(@@Matt_Model_Toolid)
                		else
                			puts "No tool used before."
                			return Sketchup.send_action("selectSelectionTool;")
                		end
                	end
                  
                  
                end  #class
                
                Sketchup.active_model.tools.add_observer(Matt_Observer.new)
                
                	
                unless file_loaded?(__FILE__)
                   UI.menu('Edit').add_item("RECALL LAST TOOL"){ Matt_Observer.recall_last }
                	file_loaded(__FILE__)
                end
                
                end#module
                
                
                
                1 Reply Last reply Reply Quote 0
                • P Offline
                  Pherim
                  last edited by

                  Using the one from the ExtensionStore... but no, it's not. Will try it out, thank you.

                  Edit: Still crashes on start. Well, it doesn't work with tools from plugins, anyway.

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    booglabird
                    last edited by

                    Nice tool, but i wish it worked after panning or rotating, avoiding those inputs

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Einstein
                      last edited by

                      The RB file has a very strange name: "Recall_last_tool%5Bv1.2%5D.rb" and its installation caused a bugsplat in SU17. I changed RB name to "Recall_last_tool" and bugsplat didn't appear anymore 😄

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

                        @einstein said:

                        The RB file has a very strange name: "Recall_last_tool%5Bv1.2%5D.rb"

                        Actually it shows up that way when you download it because Windows doesn't resolve the square brackets in file names. You could have edited the file name and removed %5B and %5D and been just fine.

                        Etaoin Shrdlu

                        %

                        (THERE'S NO PLACE LIKE)

                        G28 X0.0 Y0.0 Z0.0

                        M30

                        %

                        1 Reply Last reply Reply Quote 0
                        • E Offline
                          Einstein
                          last edited by

                          Hi!

                          This plugin works well with native SU tools but causes serious problems when combined with plugins. For example: when I perform RotaScale (ThomThom), 3D Rotate (Eneroth) or Free rotate (TIG) and then try to Recall it, it leads to bugsplat.

                          When I use Extrude Lines [D. Bur], then Recall Last Tool it just "omits" it and brings a native tool I used proviously.

                          I'd really like to test it with more plugins and see what happens but it takes too long, with one bugsplat after another...

                          1 Reply Last reply Reply Quote 0
                          • V Offline
                            Vigy
                            last edited by

                            Please anyone or Matt666!!!
                            I download this plug-in via sketchucation plug-in manager, right after downloading SU crashed on me, it won’t reopen again. I tried to restore SU but it didn’t help nether. Nor did I have a windows backup restored. 😢 😢 Can anyone PLEASE help me!
                            SU18 pro User
                            Tx in advance! Vigy!

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              @vigy said:

                              Please anyone or Matt666!!!
                              I download this plug-in via sketchucation plug-in manager, right after downloading SU crashed on me, it won’t reopen again. I tried to restore SU but it didn’t help nether. Nor did I have a windows backup restored. 😢 😢 Can anyone PLEASE help me!
                              SU18 pro User
                              Tx in advance! Vigy!
                              This is a very old plugin...

                              When you installed its RBZ it will have added a RB file into your Plugins folder.
                              Looks like this is loading and breaking things.

                              It's named something like:
                              Recall_last_tool%5Bv1.2%5D.rb

                              Open your Plugins folder and remove it...
                              Then retry starting SketchUp...

                              Your profile says you use v8 [but that is very old and I suspect it's out of date !], but if it is so then your Plugins folder is probably here:
                              C:\Program Files\SketchUp\SketchUp 8\Plugins

                              Otherwise if you have a newer version it's probably found here:
                              C:\Users\YOUR_USER_NAME\AppData\Roaming\SketchUp\SketchUp 2017\SketchUp\Plugins

                              That AppData folder might be hidden by default, but pasting the full path in a Windows Explorer window's top-bar should open it, otherwise reset your Folder-Options to show hidden content...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • jujuJ Offline
                                juju
                                last edited by

                                Eneroth has a similar extension, not free though. SU2016 + only.

                                Eneroth Tool Memory

                                Save the Earth, it's the only planet with chocolate.

                                1 Reply Last reply Reply Quote 0
                                • V Offline
                                  Vigy
                                  last edited by

                                  Thanks so much TIG! yes I found it in the hidden folder, and works very well now.
                                  Juju I will check it out, Tx

                                  1 Reply Last reply Reply Quote 0
                                  • Z Offline
                                    zhangruofei
                                    last edited by

                                    Thanks

                                    1 Reply Last reply Reply Quote 0
                                    • L Offline
                                      LeoSam
                                      last edited by

                                      Hello Matt,

                                      This is a very old thread, but I have to give it a shot. I'm running latest SketchUp - V21.1. Extensions I install are (.rbz) file type, but the file you have here for download is (.rb). How can I install it?

                                      I needed a tool to repeat last command since I started working on SketchUp 3 years ago! I really, really wish to have it. Thank you

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        To install a lone RB file you need to put it into your Plugins folder...
                                        C:\Users\YOUR_USER_NAME\AppData\Roaming\SketchUp\SketchUp 2021\SketchUp\Plugins
                                        Restart SketchUp to see if it loads OK...
                                        It is an old plugin...

                                        TIG

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

                                          Fredo's LOTT has this command binded to double space bar key

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

                                          Advertisement