RhinoScript layer visibility question / problem

Hi - I am trying to find out if a child layer is set to visible (bulb is ON), independently of the Parent layer.
Rhino.LayerVisible will return False, if Parent layer is OFF, even if the child status is ON (half-bulb icon). How would I test the mode of the child layer, independently of the visibility status of its Parent(s) ??

–jarek

Hi @Jarek,

I don’t believe RhinoScript has a method. But can query this state using Python.

https://developer.rhino3d.com/api/RhinoCommon/html/M_Rhino_DocObjects_Layer_GetPersistentVisibility.htm

– Dale

Hi @Dale,

thanks, that’s what I need. The problem this is a part for a larger code that is RhinoScript so I can’t easily use it. Please add this to the V7 wishpile for RS if you (fingers corssed) plan to add some more RhinoScript methods there.

–jarek