Display selection toggle via Python
1013
2
1
jbudsberg
Member
92 posts
Joined: Aug. 2010
Offline
Jan. 23, 2023 5:07 p.m.
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)
Jan. 24, 2023 4:18 a.m.
Once you have
pane
(i.e., the
SceneViewer
) you can call
setShowSelection
on it.
pane = hou . ui . curDesktop () . paneTabOfType ( hou . paneTabType . SceneViewer )
pane . setShowSelection ( False ) # or True to turn it on
jbudsberg
Member
92 posts
Joined: Aug. 2010
Offline
Jan. 25, 2023 8:53 p.m.
ah, I totally missed it. thanks so much!