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
hou.ui.readInput() Only output zero at the first tuple
1210 4 0- artchapter
- Member
- 5 posts
- Joined: Oct. 2021
- Offline
No matter which button I press, It always output zero at the first tuple...
Edited by artchapter - May 20, 2022 06:27:28
- sebd3dvfx
- Member
- 16 posts
- Joined: March 2024
- Offline
- alexwheezy
- Member
- 318 posts
- Joined: Jan. 2013
- Offline
- sebd3dvfx
- Member
- 16 posts
- Joined: March 2024
- Offline
- sebd3dvfx
- Member
- 16 posts
- Joined: March 2024
- Offline
-
- Quick Links