Jump to content

Floating Parameters Dialog


galagast

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.

Link to comment
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..

Link to comment
Share on other sites

  • 2 weeks later...

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
Link to comment
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

Link to comment
Share on other sites

  • 1 year later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...