input = hou.ui.readInput("Test Button Output", default_choice=0, close_choice=-1) print(input) if input[0] == -1: print("exit") if input[0] == 0: print("enter") # It always output 0 on input[0] but it should be -1 if I press exit button or esc
input = hou.ui.readInput("Test Button Output", default_choice=0, close_choice=-1) print(input) if input[0] == -1: print("exit") if input[0] == 0: print("enter") # It always output 0 on input[0] but it should be -1 if I press exit button or esc
result,comment = hou.ui.readInput("Add your entry:", title="String input", initial_contents="", buttons=("OK", "Cancel"),close_choice=1)
if result == 1 : return
else : return comment