Houdini 18.0 Python Scripting hou hou.qt

hou.qt.NodeChooserButton class

A button with the Houdini look and feel that opens the Houdini node chooser dialog when clicked.

On this page

This class inherits from Qt’s QtWidgets.QToolButton class.

Signals

nodeSelected(str)

This signal is emitted when a selection is made in the node chooser dialog.

Methods

Examples

This example demonstrates creating a chooser button for SOP nodes and hooking it to a callback function that is invoked when a node is selected from the chooser dialog:

def onNodeSelected(node_path):
    print("Selected node:", node_path)

node_chooser_btn = hou.qt.NodeChooserButton()
node_chooser_btn.setNodeChooserFilter(hou.nodeTypeFilter.Sop)
node_chooser_btn.nodeSelected.connect(onNodeSelected)

hou.qt