Making a blocking task that waits for input from a human
2905 3 0- Philj
- Member
- 8 posts
- Joined: Dec. 2014
- Offline
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
Cheap and cheerful you can use the hscript “message” command anywhere you evaluate a parameter or houdini hscript (HDA scripts like onupdate script, shelf button, etc):
In a texptort type:
to see help usage on the command
Then try:
will pop up a dialog that will pause EVERYTHING until you hit that button.
If Python and you want also cheap and cheerful, you can use hou.ui.displayMessage()
In a Houdini Python Shell type:
Beyond that you are writing your own Python +QT interrupt.
In a texptort type:
help message
Then try:
message -b "Press Me"
If Python and you want also cheap and cheerful, you can use hou.ui.displayMessage()
In a Houdini Python Shell type:
hou.ui.displayMessage("My Dialog", buttons=("OK",))
Beyond that you are writing your own Python +QT interrupt.
There's at least one school like the old school!
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
- Philj
- Member
- 8 posts
- Joined: Dec. 2014
- Offline
-
- Quick Links