New Script: SelectionMemory2; and update to SelectAtStartup
-
Okay, for everyone who ever needed to re-select what you had previously selected, here it is: SelectionMemory2.
It remembers the last 20 selection sets, and allows you to add or remove the items in a set to/from the active selection. Unlike the original SelectionMemory, this version remembers entities as you select them, making the process automatic.
It also works with items outside an active group, so you can have a FollowMe profile inside a group and the path outside the group. Just select the path, then go into the group with the FollowMe face. Add the path to the active selection using the dialog box or right-click>Restore Last Selection, then start the FollowMe tool and select the face in the group - it will follow the path to form the extrusion.
SelectAtStartup was also updated to avoid conflicts with the AppObserver that helps make this work.
-
Some additional notes:
Three or more items need to be selected for the memory function to kick in (I didn't think two items was hard enough to reselect manually to bother with it in the script).
If you start a new model or open an existing model, you'll have to close the dialog box and reopen it (sorry, it's a SketchUp thing), because the WebDialog object is tied to the model in use at the time the WebDialog object was created. Having a different model means the WebDialog can't respond to your selections any more. I included code that should close it if the model has changed, but for some reason it doesn't seem to work consistently. I'm working on fixing that, and will post when an update is available.
NOTE: If you are running startup.rb (SelectAtStartup), you MUST download the new version, or SelectionMemory2 will not work properly.
-
This is brilliant! How many times have I carefully selected a whole mess of objects one at a time, only to click the wrong thing and lose the selection? This really saves time and aggrevation. Well done, Rick. CB.
-
Rick, sweet!
This work on SU5? Are most rubys version sensitive? (Ruby Newbee here :`)
Thanks, Tom.
-
thanks, rick. it is good to see a good script get even better.
regards.
edson
-
SelectionMemory2 and SelectAtStartup both rely on Observers, a new ruby feature exclusive to SketchUp 6.
Sorry...
But thanks for the question - I need to put that on the website.
Advertisement