Houdini 17.0 Python Scripting hou hou.qt

hou.qt.getColor HOM function

Return a QColor object for a specified Houdini resource color.

getColor(color_name) QColor

Return a QColor object for a Houdini resource color with the specified name. Resource colors are defined in the Houdini color scheme files (look for *.hcs files in $HFS/houdini/config).

Raise hou.OperationFailed if no color with the specified resource name exists.


You can use hou.ui.colorFromName to get a HOM color object instead of a Qt color object.