I'm learning Python viewer states and I'm trying to find out if and how can I switch between states.
Let's say we have 3 wildly different modes/states in our tool, and we'd like to have three separate state classes that we toggle with hotkeys.
Is that possible? I'm specifically asking about keeping the logic of those modes/states in separate sections of code. Three separate __init__(), onEnter(), onMouseEvent(), etc. in a single HDA.
How to switch multiple viewer states in HDA?
341 0 1-
- alexmajewski
- Member
- 90 posts
- Joined: Aug. 2017
- Offline
-
- Quick Links