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.setOverrideCursor(busy_cursor) # Do busy work here. ..... # Restore previous cursor. QtWidgets.QApplication.restoreOverrideCursor()