Houdini 20.5 Python scripting hou hou.qt

hou.qt.TrackChooserButton class

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

On this page

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

Signals

trackSelected(str)

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

Methods

Examples

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

def onNodeSelected(track_path):
    print("Selected track:", track_path)

track_chooser_btn = hou.qt.TrackChooserButton()
track_chooser_btn.setNodeChooserFilter(hou.nodeTypeFilter.Chop)
track_chooser_btn.trackSelected.connect(onTrackSelected)

hou.qt