since you did not pull in the above request I assume I am not understanding the persistent setting correctly. Still, without the settings I am not able to get rs.LayerVisible(l, visible=False) to work according to the Rhino UI. Please see the description of the problem I found below. So my question is, how can I switch off a child-layer in the same way as pushing the light bulb in Rhino’s layer editor with LayerVisible() and without the changes from the pull request?
GitHub Pull request text:
Without this line layers that have been switched off with LayerVisible(l, visible=False), behave strangely when they have parent layers. If the parent layer is switched on and the child layer is switched off via the
function, it will not be fully off as in pushing the light bulb in the layer editor UI. The child layer is in the state that it would have, when the parent layer would be switched of (the half light bulb). This behavior is in contrast to the behavior achieved with the UI. Furthermore, when a child layer is in this weird hidden state and any layer is switched to locked with the button in the layer manager, the hidden child layer switches back on.