Search - User list
Full Version: Hide stowbar while keeping operation controls visible?
Root » Houdini Lounge » Hide stowbar while keeping operation controls visible?
raincole
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?
raincole
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]
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB