When using Toggle Stowbars, it hides everything by default. Is there a way to keep everything hidden, except for 'Display Options', 'tools' and 'operation controls'?
If anyone knows a Python trick or another method to achieve this, I'd appreciate your help!
A Question About Toggle Stowbars
810 3 1- Antti1999
- Member
- 41 posts
- Joined: 10月 2022
- Offline
- Honza Topinka
- Member
- 12 posts
- Joined: 5月 2015
- Offline
Hey. Try playing around with this
import hou b = hou.ui.hideAllMinimizedStowbars() b = not b for p in hou.ui.panes(): p.setShowPaneTabs(1) for p in hou.ui.paneTabs(): if p.type()!=hou.paneTabType.NetworkEditor: p.setShowNetworkControls(0) if p.type()==hou.paneTabType.NetworkEditor: p.setPref('showmenu',['0','1'][1]) p.setShowNetworkControls(0) elif p.type()==hou.paneTabType.SceneViewer: p.setShowNetworkControls(1) p.showDisplayOptionsBar(1) p.showOperationBar(1) p.showSelectionBar(1) if p.includeColorCorrectionBar(): p.showColorCorrectionBar(not b) if p.includeMemoryBar(): p.showMemoryBar(not b) hou.ui.curDesktop().shelfDock().show(1) hou.setPreference('showmenu.val',['0','1'][1]) hou.ui.setHideAllMinimizedStowbars(b)
- Antti1999
- Member
- 41 posts
- Joined: 10月 2022
- Offline
Wow, thanks a lot man!
Now my UI is squeaky clean
lovely!
is it possible to hide 'topmenu' too?
I'm trying to launch it as a python startup script. uiready.py
Okay, I managed to hide the 'topmenu'.
If anyone wants a minimal UI setup at startup, you can do the following:
Create a uiready.py file in C:\Users\user\Documents\houdini20.5\scripts\python\uiready.py, and paste the following code into it.
I've also assigned F11 as a shortcut to toggle the visibility of the shelf dock.
Now my UI is squeaky clean
lovely!
is it possible to hide 'topmenu' too?
I'm trying to launch it as a python startup script. uiready.py
Okay, I managed to hide the 'topmenu'.
If anyone wants a minimal UI setup at startup, you can do the following:
Create a uiready.py file in C:\Users\user\Documents\houdini20.5\scripts\python\uiready.py, and paste the following code into it.
I've also assigned F11 as a shortcut to toggle the visibility of the shelf dock.
import hou b = hou.ui.hideAllMinimizedStowbars() b = not b for p in hou.ui.panes(): p.setShowPaneTabs(1) for p in hou.ui.paneTabs(): if p.type()!=hou.paneTabType.NetworkEditor: p.setShowNetworkControls(1) if p.type()==hou.paneTabType.NetworkEditor: p.setPref('showmenu',['0','1'][0]) p.setShowNetworkControls(0) elif p.type()==hou.paneTabType.SceneViewer: p.setShowNetworkControls(1) p.showDisplayOptionsBar(1) p.showOperationBar(1) p.showSelectionBar(1) if p.includeColorCorrectionBar(): p.showColorCorrectionBar(not b) if p.includeMemoryBar(): p.showMemoryBar(not b) hou.ui.curDesktop().shelfDock().show(1) hou.setPreference('showmenu.val',['0','1'][1]) hou.ui.setHideAllMinimizedStowbars(b)
Edited by Antti1999 - 2024年9月5日 12:53:04
- animatrix_
- Member
- 4729 posts
- Joined: 2月 2012
- Offline
You can also hide the pane tabs to save even more space. You can navigate between them using Ctrl+PageUp/PageDown.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
-
- Quick Links