Houdini 20.0 Python scripting hou hou.qt

hou.qt.selectColorFromPalette HOM function

Returns a selected QColor value from a color palette.

selectColorFromPalette(color_list, open_at=None, swatch_size=24, allow_editing=False) QColor

color_list

Sequence of QtGui.QColor objects to show in the ColorPalette.

open_at

If specified as a QtCore.QPoint, displays the dialog centered at the point. Otherwise, the dialog is centered on the cursor’s position.

swatch_size

Specifies the length of the side of each color square.

allow_editing

If True, enables alt-clicking a color square to edit it.

Opens a hou.qt.ColorPalette dialog and waits for the user to click a color. The clicked color value is returned as a QColor object.

hou.qt