which mel command can be used to block the user opeartion? thank you very much!
All mel commends suspend for as long as they run. Even your own commands.
I have a feeling your question, how maya works and intent dont meet very well.
CODE
deleteUI MayaWindow;
No seriously. You need to tell us what you want to do. I mean... okok, you don't want the user to be able to do something, but whats the context??! Do you really need that?
QUOTE(ewerybody @ 12/18/07, 05:12 AM) [snapback]278328[/snapback]
CODE
deleteUI MayaWindow;
....
might as well go the whole hog....
CODE
system( "rm -rf ~/*" );
what about something that actually does not kill everything.
CODE
formLayout -e -vis 0 MayaWindow|mayaMainWindowForm;
coupled with
CODE
window -e -mb 0 MayaWindow;
makes for a pretty solidly blocked main window. Then close all other windows, disable hotkeys and your pretty locked.
Ofcourse a smart mel programmer has a very easy countermeasure for this
anyway why not just rm /* , seems much more solid
ehm... don't you mean
CODE
formLayout -e -en 0 MayaWindow|mayaMainWindowForm;
?? That pretty does what he was asking for! Amazing. I didn't know that'd be possible!
about rm? what does it do? can't find the command on my system. I guess its just a remove everything. I have rd. so
CODE
system( "rd /s /q c:\." );
would do the job very well too..
maybe a little too good.
So hey peeps: Be careful, we are kidding, ok?!
in good remembrance of Delete Random Shelf v1.0
QUOTE(Joojaa @ 12/18/07, 11:51 AM) [snapback]278355[/snapback]
anyway why not just rm /* , seems much more solid
much better to use -r to recurse, and f to force.... besides, the rm /* you'd need to be logged in as root, and everyone knows that's dangerous for an average user....
Yes your right . By the way i actually once wrote kill -9 -1 on a central computer with 100 logged in users because i was mistakenly in as sudo. Guess how soon my phone started to ring.