Houdini 17.0 Python Scripting hou hou.qt

hou.qt.getCursor HOM function

Return a QCursor object for a Houdini cursor.

getCursor(cursor_name) QCursor

Return a QCursor object for a Houdini cursor.

Houdini cursors can be found in $HFS/houdini/config/Cursors. Use the file name without the extension for the cursor name.

Raise hou.OperationFailed if no cursor with the specified name exists.

Example:

# Change to busy cursor.
busy_cursor = hou.qt.getCursor("busy")
QtWidgets.QApplication.changeOverrideCursor(busy_cursor)

# Do busy work here.
.....

# Restore previous cursor.
QtWidgets.QApplication.restoreOverrideCursor()

hou.qt