Display selection toggle via Python
1036
2
1
jbudsberg
Member
92 posts
Joined: 8月 2010
Offline
2023年1月23日 17:07
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)
2023年1月24日 4:18
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: 8月 2010
Offline
2023年1月25日 20:53
ah, I totally missed it. thanks so much!