Maya progressBar and interrupting a script loop

This seems to be a function that is forgotten by many MEL programmers but can save you a lot of headaches. It is one of those things you might want to implement anywhere in a script you know will do some heavy looping that could take a lot of processing time. Just add this to…