Friday, May 8, 2009

MEL: Breaking out of infinite loops

I read a great article today about how to break out of an infinite for or while loop in MEL. It happens to all of us at some point. Every so often you forget to add a counter or you miss a variable somewhere and you create a never-ending loop that you'd need to force quit maya in order to stop. This is a cool trick to prevent that.

http://www.naughtynathan.co.uk/?p=59

Great stuff. He also has a version for Python.

0 comments:

Post a Comment