Looking for help on threading in Maya, so you can hit “play/pause/stop” on a running script. Is this the basic idea?
scriptA - runs in the main thread. Has a variable “allowed_to_update” that scriptB has access to. Could be a UI, etc. And doesn’t know about scriptB.
scriptB - does the work, and checks with each iteration if it’s allowed to continue working, etc.