Activate last selection
-
Hello everyone!
Can I activate a previous selection in a method?
For example:
-
I select a piece of furniture in SketchUp.
-
I activate a method that selects handles that are sub-components.
-
Subsequently, it disables the furniture selection.
-
Another method changes the Handles.
-
Can we then reactivate the furniture selection?
If so, how should I proceed?
Thank you
-
-
I am not an accomplished coder but it seem to me that if you think the user is going to need access to the sel save it as an array at the first then it can be reused.
Keith
-
Seems to me that ktkoh is right. Make an Array using #to_a to remember the contents of the current selection. Then later use Selection#clear! and Selection#add to put the contents of the Array back into the Selection.
-
There might be a plugin out there called "Selection Memory" or similar.
-
Thank you for your help!
I will analyze the Selection Memory Plugin and post the method if I find it.
Advertisement