Within Maya, breaking a loop is simple enough using the progressBar command. Without more advanced thread control, you will only have the chance to break the look once per iteration. In the case of a simulation, that could still take a while.
The example in the docs is better than I could offer otherwise. http://download.autodesk.com/us/maya/2011help/CommandsPython/progressBar.html Cheers -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe