Display selection toggle via Python

   1013   2   1
User Avatar
Member
92 posts
Joined: Aug. 2010
Offline
hey all, can anyone point me how to toggle the /stage"Display selection" icon in the 3DV via Python? I poked around the viewpoint settings methods, but nothing jumped out at me. thanks!

pane = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.SceneViewer)
settings = pane.curViewport().settings()
Edited by jbudsberg - Jan. 23, 2023 17:07:30

Attachments:
tmp.jpg (55.4 KB)

User Avatar
Staff
453 posts
Joined: June 2020
Offline
Once you have pane(i.e., the SceneViewer) you can call setShowSelectionon it.
pane = hou.ui.curDesktop().paneTabOfType(hou.paneTabType.SceneViewer)
pane.setShowSelection(False)  # or True to turn it on
User Avatar
Member
92 posts
Joined: Aug. 2010
Offline
ah, I totally missed it. thanks so much!
  • Quick Links