hou.ui

Notes

The following are experiments to explore the UI elements available through the Houdini Python hou.ui module.

Source

Snippets

>>> hou.ui.displayMessage('Start Houdini', buttons=('OK', 'CANCEL'))
image

Button selections return int values based on their order: 0, 1, etc.

0

Users can be prompted with a list of choices to select from.

>>> hou.ui.selectFromList(('Option 1', 'Option 2'), message = 'Select one of the options', title = 'Start Menu')
image
(1,)

Multiple options can also be submitted.

image
(0, 1)