galagast Posted May 3, 2017 Share Posted May 3, 2017 Hi, Anyone knows how to use python or hscript to open a floating parameters window for a node? This is the option that can be found on the RMB menu of a node. Closest functionality that I found was to use something along the lines of the example the I found in the docs on creating a floating panetab: def openParmPane(node): '''Open a floating parameter pane for a particular node.''' pane_tab = hou.ui.curDesktop().createFloatingPaneTab(hou.paneTabType.Parm) pane_tab.setCurrentNode(node) pane_tab.setPin(True) return pane_tab Although for what I want, the above code may be usable. One minor gripe is that this is not the same floating window as the one from the RMB->Parameters and Channels->Parameters.. menu item of a node. Quote Link to comment Share on other sites More sharing options...
galagast Posted May 3, 2017 Author Share Posted May 3, 2017 As an added note, the docs tells this about the createFloatingPaneTab function: Quote Create and return a new floating window containing a single pane tab. Note that this method creates a floating panel with a single pane tab, and the graphical interface to add more tabs or split the pane inside the panel is not exposed. Yet, it still exposes the graphical interface for adding more tabs and splitting.. Quote Link to comment Share on other sites More sharing options...
eyevex Posted May 16, 2017 Share Posted May 16, 2017 Im not sure why you would see the interface for tabs like this although you will still see network controls... I am on kde/kunix h16. To make what for me looks and act exactly like the floating param via RMB -->Parameters and Channels -> parameters try this... node = hou.node('/obj/some/valid/oppath/to/look/at') # get desktop dt = hou.ui.curDesktop() # floating pane (pane not availible via floating pane tab) pane = dt.createFloatingPane(hou.paneTabType.Parm) # what parameters are in view pane.setCurrentNode(node) pane.setPin(True) # hide network interface and pane bar hou.hscript("pane -a 1 -A 0 " + pane.name()) 1 Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted May 18, 2017 Share Posted May 18, 2017 hou.hscript('oppane -t parmeditor path_to_your_node') 1 Quote Link to comment Share on other sites More sharing options...
galagast Posted May 22, 2017 Author Share Posted May 22, 2017 On 5/3/2017 at 7:00 PM, galagast said: As an added note, the docs tells this about the createFloatingPaneTab function: Yet, it still exposes the graphical interface for adding more tabs and splitting.. This was a bug, ID = 82496 and was fixed in 16.0.598 But the two suggested methods above works like a charm! Exactly what I was looking for. Thanks guys! I was also able to send an RFE for a direct python way to create the dialog. ID = 82519 Quote Link to comment Share on other sites More sharing options...
xc278260759 Posted November 10, 2018 Share Posted November 10, 2018 Wow I've been looking for these answers, thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.