Hide stowbar while keeping operation controls visible?
583
1
0
raincole
Member
682 posts
Joined: Aug. 2019
Offline
May 7, 2025 5:02 p.m.
When modeling in Houdini I like to keep stowbar hidden. However, one thing bugs me:
There are some options that can only be accessed via this "operation controls" bar. For example, the slide option of TopoBuild / Edit SOP. But hiding stowbar hides these controls as well, which means I have to keep toggling stowbar on and off.
Is there a way to hide stowbar but not operation controls?
Attachments:
Enter_a_filename.png (14.4 KB)
raincole
Member
682 posts
Joined: Aug. 2019
Offline
May 7, 2025 5:07 p.m.
Ok, to answer my own question:
p = hou . ui . paneTabUnderCursor ()
p . showOperationBar ( True )
Full script:
b = hou . ui . hideAllMinimizedStowbars ()
b = not b
for p in hou . ui . panes ():
p . setShowPaneTabs ( not b )
for p in hou . ui . paneTabs ():
if p . type () != hou . paneTabType . NetworkEditor :
p . setShowNetworkControls ( not b )
if p . type () == hou . paneTabType . NetworkEditor :
p . setPref ( 'showmenu' ,[ '0' , '1' ][ not b ])
elif p . type () == hou . paneTabType . SceneViewer :
p . showDisplayOptionsBar ( not b )
p . showOperationBar ( True ) # We always want operation controls
p . showSelectionBar ( not b )
if p . includeColorCorrectionBar ():
p . showColorCorrectionBar ( not b )
if p . includeMemoryBar ():
p . showMemoryBar ( not b )
hou . ui . curDesktop () . shelfDock () . show ( not b )
hou . setPreference ( 'showmenu.val' ,[ '0' , '1' ][ not b ])
hou . ui . setHideAllMinimizedStowbars ( b )
Thanks to this post:
https://www.sidefx.com/forum/topic/86404/?page=1#post-373686 [
www.sidefx.com ]
Edited by raincole - May 7, 2025 17:49:21