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


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


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


Specifies the length of the side of each color square.


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.