Jump to content
galagast

Floating Parameters Dialog

Recommended Posts

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.
menu_default1.jpg

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.

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

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())

  • Like 1

Share this post


Link to post
Share on other sites

 

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×