algorithmic modeling for Rhino
Yes, you can set the visibility of Rhino layers from a VB script. You can access the rhino document via the RhinoDocument field in every script component. The document has a Layers property which you can use to either iterate over all layers or to find layers by name/id. Once you have a layer you can change the IsVisible property and when you're done changing the layer, you have to run the CommitChanges method to make sure all the changes are fed back into the document.
--
David Rutten
david@mcneel.com
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by