[Plugin] Recall last tool v1.2

Re: [Plugin] Recall last tool v1.2

Postby plot-paris » Mon May 11, 2009 10:23 pm

great plugin, Matthieu. :thumb:

just a thought: does it make sense to have a similar tool go through several previously used tools when pressing the shortcut key repeatedly?
0
User avatar
plot-paris 
 

Re: [Plugin] Recall last tool v1.2

Postby Matt666 » Tue May 12, 2009 1:14 pm

Hi plot_paris!

That's a good idea... I will give a try! I think we may go through 10 previously used tools, and may undo history (retrun to the last tool used) by activating selection tool.
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Recall last tool v1.2

Postby Chris Fullmer » Tue May 12, 2009 9:49 pm

Hey, I was just thinking about a plugin that would cycle through tools on repeated pressing of a button.

So assign it to the spacebar. Hit the spacebar once and its select. Twice it move, 3 is rotate. But I quickly decided against the silly plugin when I started thinking about having to hit the spacebar 26 times to get to "place camera" or something :lol:

But in this context, I think it is quite a good idea,

Chris
0
Lately you've been tan, suspicious for the winter.
All my Plugins I've written
User avatar
Chris Fullmer 
SketchUp Team
SketchUp Team
 

Re: [Plugin] Recall last tool v1.2

Postby plot-paris » Wed May 13, 2009 10:02 am

another idea, although probably not managable with ruby, is a much more graphical approach:

when you hold down the space bar, a ring with tool buttons appears around your cursor in a circular fashion. you can now left click any button to get the tool. or you can simply turn the scroll wheel to file through them, either clockwise or counterclockwise. by default the selection tool is highlighted - so if you just press the space bar once, you get the select tool.

you can easily customise this tool-circle by holding down the space bar and then dragging unwanted tools out of the circle and vice versa.

well, maybe Google comes up with soemthing similar in the next release :D
0
User avatar
plot-paris 
 

Re: [Plugin] Recall last tool v1.2

Postby juan974 » Fri Mar 19, 2010 8:11 am

Merci MATT ...
0
User avatar
juan974 
 

Re: [Plugin] Recall last tool v1.2

Postby bitsnbites » Thu Jun 23, 2011 9:03 pm

Thank you very much, Matt666.
That´s the Plugin i was lookin for.

thx a lot
0

bitsnbites 
 

Re: [Plugin] Recall last tool v1.2

Postby jim4366 » Fri Jun 24, 2011 12:44 pm

I'm glad to see this. Thanks.
I was wondering if it's possible to map this tool to the mouse right click button. But only in the case that nothing is selected. If something is selected then the context menu opens as normal.

Years ago, autocad used to be set up like this. Once you're used to it, you don't need to take your eyes off of what you were working on to pick up a tool icon or a keyboard shortcut. The tool is always at your fingertips, instantly there. Reduces eye fatigue at the end of the day. And reduces mouse "mileage" so to say.

possible maybe ?
0

jim4366 
 

Re: [Plugin] Recall last tool v1.2

Postby Matt666 » Fri Jun 24, 2011 1:02 pm

I will try to find a solution.
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Recall last tool v1.2

Postby Matt666 » Fri Jun 24, 2011 1:51 pm

Sorry, I don't know how to create a personal observer for controlling mouse events...
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Recall last tool v1.2

Postby Pherim » Sat Jun 25, 2011 10:46 am

Neat, I didn't know this yet. Great timesaver when switching to select tool to return to the previously used tool.
0

Pherim 
 

Re: [Plugin] Recall last tool v1.2

Postby jim4366 » Sat Jun 25, 2011 2:22 pm

Matt666 wrote:Sorry, I don't know how to create a personal observer for controlling mouse events...

Okay. Thanks for checking.
0

jim4366 
 

Re: [Plugin] Recall last tool v1.2

Postby mirale999 » Mon Sep 12, 2011 5:40 am

Merci Matt! Great plugin~
By the way, I come up with an idea, I think maybe it's useful! :berserk:

I use the shortcut“shift+Y” to recall the last tool. When I use this plugin, a situation like this will happen:
first I use the "Edge follow me" tool to build a face,
then I move it to another place, and use move and scale to modify the curves,
then I want to do "Edge follow me" again

so the idea comes:------this tool have a function: ignore the move, scale, rotate, line, arc, rectangle, circle...(because they are so useful and they have shortcuts), but recall edge follow me, blend, extrapolate colors...(you must find it in a submenu).
On my bad English... hope you get my meaning... :enlight:
0
paranoia is a higher form of awareness...

mirale999 
 

Re: [Plugin] Recall last tool v1.2

Postby Matt666 » Mon Sep 12, 2011 8:41 am

Hi mirale999!
So you want RLT ignores some native tools you would be able to choose? Do you agree with this "way of explanation" (I dont know how to tell it in english :oops: )?
I don't know if it's possible... But I can try.
0
Frenglish at its best !
My scripts

Matt666 
 

Re: [Plugin] Recall last tool v1.2

Postby jdtsmith » Sat Feb 04, 2012 7:48 am

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!
0

jdtsmith 
 

Re: [Plugin] Recall last tool v1.2

Postby alex_picas » Wed Jul 11, 2012 8:12 pm

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.
0

alex_picas 
 

Re: [Plugin] Recall last tool v1.2

Postby Omaha » Mon Dec 28, 2015 1:29 am

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

Omaha 
 

Re: [Plugin] Recall last tool v1.2

Postby Pherim » Sun Nov 20, 2016 1:18 pm

Makes SU Make 2017 (Windows) crash.
0

Pherim 
 

Re: [Plugin] Recall last tool v1.2

Postby CadFather » Mon Nov 21, 2016 9:39 am

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


Code: Select all
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

0
Quarr-IT - SketchUp Training from the Master.. http://quarr-it.com/
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Recall last tool v1.2

Postby Pherim » Mon Nov 21, 2016 9:52 am

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.
0
Last edited by Pherim on Sat Nov 26, 2016 10:36 am, edited 1 time in total.

Pherim 
 

Re: [Plugin] Recall last tool v1.2

Postby CadFather » Thu Nov 24, 2016 9:08 pm

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

Code: Select all
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

0
Quarr-IT - SketchUp Training from the Master.. http://quarr-it.com/
User avatar
CadFather 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Recall last tool v1.2

Postby booglabird » Mon Mar 27, 2017 10:46 am

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

booglabird 
 

Re: [Plugin] Recall last tool v1.2

Postby Einstein » Sat Jan 13, 2018 3:08 pm

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 :)
0

Einstein 
 

Re: [Plugin] Recall last tool v1.2

Postby Dave R » Sat Jan 13, 2018 5:29 pm

Einstein wrote: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.
0
%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Recall last tool v1.2

Postby Einstein » Sun Mar 18, 2018 9:06 pm

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...
0

Einstein 
 

Re: [Plugin] Recall last tool v1.2

Postby Vigy » Mon Apr 16, 2018 8:27 pm

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. :cry: :cry: Can anyone PLEASE help me!
SU18 pro User
Tx in advance! Vigy!
0

Vigy 
 

Re: [Plugin] Recall last tool v1.2

Postby TIG » Mon Apr 16, 2018 8:47 pm

Vigy wrote: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. :cry: :cry: 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...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Recall last tool v1.2

Postby juju » Mon Apr 16, 2018 9:00 pm

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

Eneroth Tool Memory
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: [Plugin] Recall last tool v1.2

Postby Vigy » Fri Apr 20, 2018 3:59 pm

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

Vigy 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Previous


 

Return to Plugins

Who is online

Users browsing this forum: godaekun and 12 guests

Visit our sponsors: