Hide layers in detail with rhinocommon


#1

Hi,
I didn’t find any function in the RhinoscriptSyntax library that allows to toggle the layer visibility inside a detail view. I want to script the _HideLayersInDetail command without the rs.command(…) function.
I think there might be a way with rhinocommon but I don’t get the main workflow.
I have a script that loops through each layout views, then I can go through each detail views and there I am stuck to access to layer visibility.
Does Somebody have an idea ?
Thanks for your help