Search - User list
Full Version: paneTabType for opening up Task Graph Table
Root » PDG/TOPs » paneTabType for opening up Task Graph Table
joshm
Hey everyone!
Is there a way to open up the Task graph Table with python? I can't find a paneTabType with this but was wondering if there's a different method.

Trying to do something like this:
pane_tab = hou.ui.curDesktop().createFloatingPaneTab(hou.paneTabType.Parm)
pane_tab.setCurrentNode(node)
pane_tab.setPin(True)

Thanks!
EricSheng
Hi joshm:
I guess this should do the work.
desk = hou.ui.curDesktop()
i = desk.createFloatingPanel(hou.paneTabType.Parm, size=(hou.ui.scaledSize(1400), hou.ui.scaledSize(800)))
pane = i.panes()[0]
pp = pane.currentTab().setType(hou.paneTabType.PythonPanel)
pp.setActiveInterface(hou.pypanel.interfaceByName("taskgraphtable"))
Edit:
It works fine when call from file, but it raises error when run in Python Shell:
AttributeError: 'PathBasedPaneTab' object has no attribute 'setActiveInterface'
I don't know why, and if I run again this line
pp = pane.currentTab().setType(hou.paneTabType.PythonPanel)
then run the rest, it works in the Python Shell.
————————————————
Edit again…
Also, if you check the file in your Houdini installation folder like
C:\Program Files\Side Effects Software\Houdini 17.5.397\houdini\python2.7libs\nodegraphtopui.py
You'll find the way SESI does this in the bottom of the file.
There's a function called openTaskGraphTableWindow, you can even just do this:
import nodegraphtopui as topui
node = hou.selectedNodes()[0] # make sure you have select a Top node.
topui.openTaskGraphTableWindow(node)
joshm
That's what I was looking for, thank you!
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