[Plugin] Selection Memory

[Plugin] Selection Memory

Postby thomthom » Mon Jan 09, 2012 11:05 am

Overview
Response to this thread: http://forums.sketchucation.com/viewtop ... 15&t=42390
Will 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.

Modification
To modify the number of saved sets, modify this constant:
SELECTION_STACK_SIZE = 5
I recommend you do not change this to a too large number.

Access
Edit > Cycle Previous Selections

Features
  • 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



Footprint
<Sketchup>/Plugins/
+-
tt_selection_memory.rb

1
Last edited by thomthom on Thu Nov 28, 2013 11:52 pm, edited 1 time in total.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby Rich O Brien » Mon Jan 09, 2012 11:23 am

Nice tool :thumb:

Works like a charm
0
There's a frontroom and a backroom....reverse faces
User avatar
Rich O Brien 
Administrator
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby mitcorb » Mon Jan 09, 2012 1:54 pm

Thanks, thomthom:
Tested in Sketchup 7, also. Worked on first try.
0
I take the slow, deliberate approach in my aimless wandering.
User avatar
mitcorb 
Top SketchUcator
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby thomthom » Mon Jan 09, 2012 2:05 pm

mitcorb wrote:Tested in Sketchup 7, also. Worked on first try.

:thumb: :thumb:
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby massimo » Mon Jan 09, 2012 2:08 pm

Thanks! :thumb:
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
0
Last edited by massimo on Mon Jan 09, 2012 2:15 pm, edited 1 time in total.
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby massimo » Mon Jan 09, 2012 2:16 pm

Oh, I see. Thanks again. :)
0
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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.
0
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby numerobis » Mon Jan 09, 2012 2:27 pm

WOW! This sounds great! I have to test it...
thanks!!! 8-)
0

numerobis 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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.
0
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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.
0
Last edited by massimo on Mon Jan 09, 2012 2:47 pm, edited 1 time in total.
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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.
0
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby 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. :/
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby massimo » Mon Jan 09, 2012 3:02 pm

Ok, no problem. :)
0
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.0) — 09 January 2012

Postby andybot » Mon Jan 09, 2012 3:02 pm

Thanks Thomthom :thumb: :thumb:
works as expected for me!
0
my blog featuring recent projects
User avatar
andybot 
Premium Member
Premium Member
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby 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.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby massimo » Mon Jan 09, 2012 3:45 pm

Now it seems to work just fine. :thumb: :thumb:
0
User avatar
massimo 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby john2 » Mon Jan 09, 2012 4:24 pm

yeeeeeeeeeaaa
0
Sketchup Make 2016 (64-bit), SketchUp Make 2015 (64-bit), Vray 2.0 , Windows 8.1 – 64 bit, ATI Radeon 8570 Graphics 2GB,
User avatar
john2 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby Ben Ritter » Mon Jan 09, 2012 6:42 pm

Sweet! Thank you so much, again.
0

Ben Ritter 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby john2 » Tue Jan 10, 2012 7:50 am

thanks a llllot thomthom..great plugin. saves a lot of time during accidents ;)

0
Sketchup Make 2016 (64-bit), SketchUp Make 2015 (64-bit), Vray 2.0 , Windows 8.1 – 64 bit, ATI Radeon 8570 Graphics 2GB,
User avatar
john2 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby 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!
0
3D Artist at Clearstory 3D Imaging
Guide Tool at Winning With Sketchup
Content Creator at Skapeup
User avatar
EarthMover 
Premium Member
Premium Member
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby thomthom » Wed Feb 22, 2012 9:20 am

EarthMover wrote:You deserve a chocolate fudge covered peanut butter chocolate chip cookie with oreo filling!

0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby Stinkie » Wed Feb 22, 2012 9:42 am

Thanks, Thom. Most useful. :thumb:
0
'Nobody knew health care could be so complicated.' -D. Trump
User avatar
Stinkie 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby 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 ;)
0
User avatar
halroach 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

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

victor hugo 
 

Re: [Plugin] Selection Memory (1.0.1) — 09 January 2012

Postby thomthom » Sat Sep 29, 2012 1:45 am

If you reinstall then it would revert back, yes.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Selection Memory

Postby gonashvili » Thu Dec 05, 2013 10:18 am

This be them bombz.


Big up yourself, sir, etc.... :)
0
User avatar
gonashvili 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

Next


 

Return to Plugins

Who is online

Users browsing this forum: Duyan, hydevine, Yahoo Bot and 9 guests

Visit our sponsors: