Python - Hide - Remove : Python panel controls

   864   1   0
User Avatar
Member
45 posts
Joined: Dec. 2016
Offline
Hello,

How can I hide or remove with python the python panel controls (cf gif) when I open a python panel, like the other panel.
import toolutils
kwargs['pane']=None
controls = toolutils.createOrShowPythonPanel(kwargs, 'attribGraph', "Title", 4)
for c in controls:
    c.setShowNetworkControls(0) 

I try "setShowNetworkControls" but It's hide the Network Navigation Bar and not the python panel controls.
Edited by Efi - Jan. 31, 2021 09:05:06

Attachments:
preview.gif (99.0 KB)

Jeremy Gurdal
VFX Artrist
User Avatar
Member
45 posts
Joined: Dec. 2016
Offline
I found it.
https://www.sidefx.com/docs/houdini/hom/hou/PythonPanel.html [www.sidefx.com]
import toolutils
kwargs['pane']=None
pane = toolutils.createOrShowPythonPanel(kwargs, 'attribGraph', "Attributes Graphic", 4)
pane[0].setShowNetworkControls(0)
pane[0].showToolbar(0)
Edited by Efi - Jan. 31, 2021 09:39:44
Jeremy Gurdal
VFX Artrist
  • Quick Links