ISOLATE SELECTION
-
Hi there, I'm just wondering if there's a script to isolate selected layer(s)? (aside from setting up a specific scene). Thanks!
-
How would you use such a plugin?
-
Unfortunately there is no way from the ruby API to know which layers are selected.
-
Basis is...
layer=model.layers["MyLayer"] seln=[] ents=model.active_entities.to_a ents.each{|e|seln<<e if e.layer==layer} sel=model.selection sel.clear sel.add(seln) ### do stuff to 'seln' ### or 'ents-seln'
-
@dave r said:
How would you use such a plugin?
Right now, I just assign new scene to isolate a layer. I'm thinking if there's an isolate selection option when you right-click (menu). I guess it won't be beneficial to all. It just happened that I've been using AutoCAD for a long time and just a newbie to SKU. Maybe my workflow is still adjusting -
You would be surprised at the innovations in many fields that have come about from someone thinking "out of the box." In the "open source world" many solutions are derived from contributions from the crowd, and possibly some are derived from those not distracted by the nuts and bolts (minutiae) of the problem.
-
Thanks for the explanation. I was just curious because layers don't isolate entities from each other in SketchUp. They only control visibility of those entities.
Advertisement