Display selection toggle via Python

   1036   2   1
User Avatar
Member
92 posts
Joined: 8月 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 - 2023年1月23日 17:07:30

Attachments:
tmp.jpg (55.4 KB)

User Avatar
スタッフ
455 posts
Joined: 6月 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: 8月 2010
Offline
ah, I totally missed it. thanks so much!
  • Quick Links