by thomthom » Mon Jan 09, 2012 11:05 am
OverviewResponse to this thread: http://forums.sketchucation.com/viewtop ... 15&t=42390Will let the user cycle through the five last selection sets. Useful when you for instance accidentally deselects a carefully crafted selection. Important!This plugin has not been tested under OSX! It is not known how it will behave under SketchUp OSX where one process can have multiple models open. Unpredictable behaviour will most likely occur - possibly bugsplats. ModificationTo modify the number of saved sets, modify this constant: SELECTION_STACK_SIZE = 5I recommend you do not change this to a too large number. AccessEdit > Cycle Previous SelectionsFeatures- Cycle Previous Selections
Cycles through the last 5 selection sets. Requirements- SketchUp 8 or newer - ( Other versions untested )
- Might work with older version. Just test for yourself. Either it works or it doesn't.
Download tt_selection_memory.rb Footprint <Sketchup>/Plugins/ +- 
tt_selection_memory.rb 
Please, register (free) to access all the attachments on the forums.
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by Rich O Brien » Mon Jan 09, 2012 11:23 am
Nice tool Works like a charm
-

Rich O Brien
- Administrator
-
- Posts: 8270
- Joined: Fri Oct 31, 2008 9:05 am
- Location: Limerick, Ireland
- Name: Rich O'Brien
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: engineering and mechanical design
- Level of SketchUp: Advanced
by mitcorb » Mon Jan 09, 2012 1:54 pm
Thanks, thomthom: Tested in Sketchup 7, also. Worked on first try.
I take the slow, deliberate approach in my aimless wandering.
-

mitcorb
- Top SketchUcator
-
- Posts: 3394
- Joined: Sat Mar 22, 2008 2:32 pm
- Location: USA
- Name: Tim
- Operating system: Windows
- SketchUp version: 8
- License type: Free
- SketchUp use: architecture
- Level of SketchUp: Intermediate
by massimo » Mon Jan 09, 2012 2:08 pm
Thanks! It seems not working with edges with the last selection. I mean select a rectangle with a double click-->deselect-->"cycle previous selection" and only the face is selected. But if you've made another selection and go back to the initial selection then it works. SU pro 7.1
Last edited by massimo on Mon Jan 09, 2012 2:15 pm, edited 1 time in total.
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Mon Jan 09, 2012 2:15 pm
When you double click - two selections sets are made. One for the first click on the face - and one on the second click when edges are selected. If you deselect after a doubleclick you need to cycle two times to restore the selection with both borders. It is a bit counter-intuitive some times like that.
Basically how it works: Every times you change the selection - the selection set is stored in the selection stack. Cycle selection advances the internal index and fetches the selection set associated with that index.
The plugin is a bit rough around the edges like that.
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by massimo » Mon Jan 09, 2012 2:16 pm
Oh, I see. Thanks again. 
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by massimo » Mon Jan 09, 2012 2:21 pm
Another thing: it seems not working with selection window from left to right. Is that normal? Also not working with artisan's select brush.
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Mon Jan 09, 2012 2:26 pm
massimo wrote:Another thing: it seems not working with selection window from left to right. Is that normal?
Seems to work here. SU8? As far as I've seen - it work with any selection. Not sure how Artisan's selection brush works. If it continuously updates the selection then it might cause unexpected behaviour - as the stack will the flushed very quickly. It works by using SketchUp's selection observer...
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by numerobis » Mon Jan 09, 2012 2:27 pm
WOW! This sounds great! I have to test it... thanks!!! 
-
numerobis
-
- Posts: 254
- Joined: Sat Apr 12, 2008 1:27 pm
- Location: Germany
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
by massimo » Mon Jan 09, 2012 2:30 pm
I have SU 7.1 and can confirm that here not works with left-->right selection while it works with right-->left selection.
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Mon Jan 09, 2012 2:35 pm
massimo wrote:I have SU 7.1 and can confirm that here not works with left-->right selection while it works with right-->left selection.
Just tried it myself - I see no problems with Left to Right as oppose to Right to Left... Are you able to make a short video of what you see?
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by massimo » Mon Jan 09, 2012 2:41 pm
Ehm...I'm afraid not. Anyway this is what i do: - Draw a simple rectangle for example; - Select all (edges and face) with a left-->right window. - click anywhere to deselect; - run "cycle previous selection" and nothing happens. EDIT it's not working with right-->left selection either.
Last edited by massimo on Mon Jan 09, 2012 2:47 pm, edited 1 time in total.
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Mon Jan 09, 2012 2:47 pm
Ah - it's something to do with how it retrieves back the previous selections. What you are experiencing is probably that it retrieves an earlier selection set. Might be empty.
There is five slots of selection sets - always - even when you start a fresh model. Keep cycle through and it will come back. I'll have a look at it. But this plugin isn't on top of my priority list.
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by massimo » Mon Jan 09, 2012 2:50 pm
There is five slots of selection sets - always - even when you start a fresh model
Ah! That's maybe the reason. Thought that with a fresh model the "memory" would have been deleted.
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Mon Jan 09, 2012 2:52 pm
Well, it does - but there's a pre-reserved set of slots regardless. Which then are "filled" as you use it.
The plugin was written very quickly so unfortunately it has this behaviour which is illogical from a user point of view. :/
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by massimo » Mon Jan 09, 2012 3:02 pm
Ok, no problem. 
-

massimo
- Global Moderator
-
- Posts: 1301
- Joined: Thu Mar 19, 2009 10:52 am
- Location: Italy
- Name: massimo
- Operating system: Windows
- SketchUp version: 7
- License type: Pro
- SketchUp use: other
- Level of SketchUp: Intermediate
by thomthom » Mon Jan 09, 2012 3:24 pm
Version 1.0.1 Did a quick tweak to it. I believe it should retrieve the previous selection more predictably now.
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by john2 » Mon Jan 09, 2012 4:24 pm
yeeeeeeeeeaaa 
Google SketchUp Pro 8, Vray 1.49, Windows 7 – 32 bit
-
john2
-
- Posts: 266
- Joined: Tue Oct 18, 2011 7:27 am
- Name: John
by Ben Ritter » Mon Jan 09, 2012 6:42 pm
Sweet! Thank you so much, again.
-
Ben Ritter
-
- Posts: 351
- Joined: Wed Nov 14, 2007 4:55 pm
- Location: Malta, Illinois
by john2 » Tue Jan 10, 2012 7:50 am
thanks a llllot thomthom..great plugin. saves a lot of time during accidents  
Google SketchUp Pro 8, Vray 1.49, Windows 7 – 32 bit
-
john2
-
- Posts: 266
- Joined: Tue Oct 18, 2011 7:27 am
- Name: John
by EarthMover » Wed Feb 22, 2012 3:01 am
Thanks bro for this great tool. I've always enjoyed having the selection in the undo stack with 3ds Max, now it's possible in sketchup as well! You deserve a chocolate fudge covered peanut butter chocolate chip cookie with oreo filling!
A designer is an emerging synthesis of artist, inventor, mechanic, objective economist and evolutionary strategist. - R. Buckminster Fuller Some of my 3D crap
-

EarthMover
- Top SketchUcator
-
- Posts: 1792
- Joined: Fri Sep 12, 2008 9:06 pm
- Location: Eastern Pennsylvania
- Name: Adam Hails
by thomthom » Wed Feb 22, 2012 9:20 am
EarthMover wrote:You deserve a chocolate fudge covered peanut butter chocolate chip cookie with oreo filling!

-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
by TomDC » Wed Feb 22, 2012 9:42 am
Thanks, Thom. Most useful. 
Bill Maher on the French: "They invented sex during the day, lingerie and the tongue."
-
TomDC
-
- Posts: 2931
- Joined: Mon Nov 12, 2007 1:16 pm
- Location: Behind you.
by halroach » Wed Feb 22, 2012 12:48 pm
Thanks Thom! You could add it to your already marvelous set of tools in 'selection toys'. That's it! I'm all out of keys on my keyboard for another shortcut for such a good tool. either I scrap some short cut I barely use, or I'll bump it up to them less used Shift+ and Ctrl+ shortcuts 
-
halroach
-
- Posts: 167
- Joined: Sat Mar 29, 2008 1:12 pm
- Name: Halroach
by VICTOR HUGO » Fri Sep 28, 2012 6:16 pm
Buenos Dias.
If I want to revert the "selection_stack size" to default which number would be; or by removing the plugin it will go back to default?
Thanks.
-
VICTOR HUGO
-
- Posts: 35
- Joined: Fri Aug 10, 2012 9:43 pm
- Name: VICTOR
by thomthom » Sat Sep 29, 2012 1:45 am
If you reinstall then it would revert back, yes.
-

thomthom
- Global Moderator
-
- Posts: 17545
- Joined: Tue Nov 13, 2007 12:47 pm
- Location: Trondheim, Norway
- Name: thomthom
- Operating system: Windows
- SketchUp version: 8
- License type: Pro
- SketchUp use: architecture
- Level of SketchUp: Advanced
-
Return to Plugins
|