can't call isShowingNetworkControls function

   833   0   0
User Avatar
Member
28 posts
Joined: Nov. 2016
Offline
I'm trying to call the isShowingNetworkControls function of a hou.NetworkEditor object which should be inherited by hou.PaneTab but I'm getting an error that the NetworkEditor does not have this as an attribute.

Does anyone know what I'm missing here?

Here's the code inside of a shelf tool:

floatingPanel = hou.ui.curDesktop().createFloatingPanel(hou.paneTabType.PythonPanel)

pythonPanelTab = floatingPanel.paneTabs()[0]
pythonPanelTab.setActiveInterface(hou.pypanel.interfaceByName("taskgraphtable"))
pythonPanelTab.showToolbar(False)

topPane = floatingPanel.panes()[0]
bottomPane = topPane.splitVertically()
networkViewTab = bottomPane.tabs()[0]
networkViewTab = networkViewTab.setType(hou.paneTabType.NetworkEditor)


#None of these work
#networkViewTab.setShowNetworkControls(False)
#print networkViewTab.hasNetworkControls()
print networkViewTab.isShowingNetworkControls()
  • Quick Links