I guess we don’t have freeze option in layer command. How can I pick an object and hide all objects on that layer?
Tags:
Permalink Reply by Chris Tietjen on February 19, 2013 at 7:54pm Here's a Rhinoscript that will do what you want. Drag the .rvb file onto an open Rhino document window to test it. Attach it to a button or create an alias for it if you find it useful.
Permalink Reply by Tom on February 19, 2013 at 9:23pm Yes, it does the job perfectly. Thanks.
Any chance you know a script to match an object property for layer info only. To sort 3d model for rendering, sometimes need match objects layers to assign material by same layers. In Rhino, a message dialogue box up for your choose lots of information other than layer when you run command Matchproperties.
Permalink Reply by Chris Tietjen on February 20, 2013 at 4:45am You can either pick the objects to be matched or use a collection of preselected objects.
Permalink Reply by Jacek Godlewski on February 20, 2013 at 12:12am Using just Rhino commands, no scripts required:
Command: SelLayer
Button: Select, pick an object with a mouse
Command: Hide
If you assign some short aliases to the commands, the procedure takes just a couple of key strokes
Permalink Reply by Tom on February 20, 2013 at 5:54am I put together and have this, it works in one click:
!_SetLayerToObject _Pause _-OneLayerOn _Enter _SelAll _Hide _-Layer _On * _Enter
Permalink Reply by Pascal Golay on February 20, 2013 at 9:06am Hi Tom- use _OneLayerOff - does that do it? Or maybe you want the layer on but objects hidden? Your macro seems fine for that. You need a space after the ! though.
-Pascal
pascal@mcneel.com
© 2013 Created by McNeel Admin.
