Dear chimera users!
During a molecular dynamics simulation, I would like to run a python script that triggers a specific command once the simulation has reached a certain number of steps or a specific amount of time. I was able to programmatically start, pause, continue and stop a simulation using a primary Isolde object. However, it appears that the script is not waiting until the maximum number of MD steps is reached before moving on to the next command. I've tried using the sleep() python command, but unfortunately, this causes chimeraX to get stuck and unresponsive until the script is finished sleeping. Do you have any suggestions for how I can achieve this without causing chimeraX to freeze up? 
Thank you for your help!

--
Rafael E. O. Rocha, Ph. D.
Department of Biological Sciences
Federal University of Minas Gerais.