updateProgressAndCheckForInterrupt(percentage=-1)
→ bool
Warning
This is deprecated. Use hou.InterruptableOperation instead.
Return True
if the user pressed Escape and False
otherwise.
percentage
An integer value containing the percentage complete to display in the taskbar. If the percentage is -1, the taskbar will not display the completion percentage.
You would typically call this function from inside a Python SOP, to let the user of the SOP press escape to interrupt a long cook.
See Define a new SOP type using Python for an example.