How to get Active/Visible in the SGT with Python

   472   0   1
User Avatar
Member
447 posts
Joined: April 2018
Offline
Hi, like the title says, how do we query the state of "active" or "visible" in the SGT. There exists a method to get the state of "solo", but I cannot find anything for the other two.

This code can get me a tuple of all solo geometry:
lopnet = hou.node("/stage")
with lopnet.viewportOverrides(lopnet.node("cube1")) as overrides:
    selrule = hou.LopSelectionRule()
    selrule.setPathPattern("type%:Mesh")
    solo_geo = overrides.soloGeometry()

The LopViewportOverrides docs [www.sidefx.com] shows no method for "active" or "visible" though.
  • Quick Links