Grasshopper

algorithmic modeling for Rhino

Hey Guys,

I am looking for a Visualbasic script which i can change the visiblity from certain Layers.

Is their a way to create this?

regards

Henne

Views: 542

Replies to This Discussion

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

Thanks David,

It works.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service