PDA

View Full Version : How can I kill proc?


Nat7
02-05-2008, 08:39 AM
Hi there,

Is there a way to kill proc without exiting Maya?

Thanks!

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

Nat7
02-05-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.

Omita
02-06-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"

-H

Nat7
02-08-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. ;)

Omita
02-08-2008, 10:40 PM
Also, when in doubt check the docs.

file:///C:/Program%20Files/Alias/Maya8.0/docs/Maya8.0/en_US/wwhelp/wwhimpl/js/html/wwhelp.htm


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-08-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.