I’m struggling to find the relevant hou API call that changes the visibility of external objects. The equivalent of clicking the scene viewer button in the image below.
I’ve looked into the displaySets and methods on the viewport & panetab itself but I can’t seem to find this specific functionality.
Could anyone point me in the right direction, if this is indeed exposed in the HOM?
Hey, I ran into the same wall as you did. It *seems* like there's no way to directly set that button - or at least I never found it (I suspect they're a sort of macro for various viewport settings).
In the end I got around it by changing the "Viewport Settings" (similar to how it would be done in the Display > Optimize (tab) > Culling > Visible Objects )
Like so (i'm making my own scene viewer in this example):