Grasshopper

algorithmic modeling for Rhino

Hello,

 

I would like to change layers visibility with a script and all I found was Layer.IsVisible property, is there a method to turn it on and off?

 

Thanks!

Views: 1449

Replies to This Discussion

Hi Miguel,

It should be possible to assign to this property:

http://www.rhino3d.com/5/rhinocommon/html/P_Rhino_DocObjects_Layer_...

 

//Layer l = ...;

l.IsVisible = true;

l.IsVisible = !l.IsVisible;

 

Thanks,

- Giulio
________________
giulio@mcneel.com
McNeel Europe

Ok, Giulio.

 

Many thanks!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service