View Full Version : How can I kill proc?

02 February 2008, 08:39 AM
Hi there,

Is there a way to kill proc without exiting Maya?


Robert Bateman
02 February 2008, 10:38 AM
use the progressWindow command

02 February 2008, 01:11 PM
use the progressWindow command

Thank you RB!
It'll be a good idea to have a progressWindow for users for a long operation. :)

...However, I'm looking for something to terminate unexpected operations such as infinite loop while I'm coding. Something like Ctrl + D.

02 February 2008, 10:52 PM
I don't think you can do it without killing Maya. It's best to throw in a for() loop and have it fail after 1000 loops if you are unsure of your code. Or add a listener object via scriptJob to break out of your loop.

Look into "scriptJob"


02 February 2008, 06:43 AM
Thanks Omita!

scriptJob command seem bit high level to me, but it sure will be useful to keep in mind!
I guess I'll just have to be careful coding loop operation. ;)

02 February 2008, 10:40 PM
Also, when in doubt check the docs.


How can I stop a MEL script that is running?

Unfortunately, you cannot abort a MEL script while its running. The only thing you can do is undo the operation once its done.

CGTalk Moderation
02 February 2008, 10:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.