Houdini 20.5 Python scripting hou hou.qt

hou.qt.fromQColor HOM function

Convert the given QColor to a HOM color and alpha value.

fromQColor(qcolor) [Hom:hou.Color], float

Convert the given QColor, qcolor, to a hou.Color and alpha value and return the hou.Color and alpha as a 2-tuple.

Note that hou.Color does not store an alpha which is why the alpha is returned separately.

hou.qt