Houdini 20.5 Python scripting hou hou.qt

hou.qt.canCreateIcon HOM function

Return true if a valid (non-empty) icon can be created from the supplied icon name.

canCreateIcon(name) bool

This functon can be used before using hou.qt.Icon to create a new icon. If this function returns False, the generated icon, while valid, will be blank because no source data will be found using the given name.

hou.qt