surpress warning message ?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Display Modes
  06 June 2003
surpress warning message ?

hey folks,

is there a way to disable/surpress a maya warning message in a script ?

I think I heared about this, but I cant remember anymore ....
thanks,
Flo
__________________
www.flo3d.com
 
  06 June 2003
hmm..

the only thing i found was the "catchQuiet" command which is not what you are really looking for..

hows weta?

cheers

alexx
 
  06 June 2003
hmmmm .... I just know catch ...but this just works for error messages ....
I have a bunch of annoying warnings which I want to get rid of.


despite of that , its a lot of work. But I enjoy this beautyfull land. ...though its winter over here and our house is frigging cold.

greetz to munich,
Flo
__________________
www.flo3d.com
 
  06 June 2003
Well, a lot of these warnings say that you can disable them by typing in "cycleCheck - e off". You can put it in you own script so it doesn't display these kind of warnings.
For the other warnings you are getting, you could fix up the script that is responsable for these warnings.

:: Galactor ::
 
  06 June 2003
yeah, id love to know how to disable them too.
for instance, yesterday i was casting strings to ints, and you get dirtly little warnings telling you its doing exactly what you expect it to do. if you have these warnings spat out from a script intended for distribution, then such warnings might throw a user. yeah, you can often figure ways around, but it adds extra operations, which might be ok for once off 'macros', but in repitious, time sensative scripts its a waste.
 
  03 March 2005
perhaps a bit late, but beter late than never , here is the link :

http://www.highend3d.com/boards/sho...ge=&view=&sb=&o=
__________________
Fred.
3D computer artist.
QuanticDream.
 
  03 March 2005
scriptEditorInfo -e -suppressWarnings true;

Will prevent warning messages from being printed to the script editor, you'll still seem the flash by in the status bar.
 
  04 April 2005
after this thread is coming up again..

i wonder why mark is still missing in here but i would say: supressing warning messages is not really a good idea. i would still say, that it is a lack of clean coding if you get them.
if you program all correctly there should not be any.

wrend: if you cast a string to int you will only get a warning if the string contains non digit data.
int $i = (int)("1234"); // -> no warning
int $i = (int)("1234a"); // -> warning

cheers

alexx
 
  04 April 2005
@ bruegger : does not work with maya 5.0.1 (and not in the MEL command reference.)

@ alexx : I agree with you , ( I am not a mel guru neither a programer) but I had the very annoying "Warning: Some items cannot be moved in the 3D view " message , becauseI was runing a mel script moving UV on a selected object, while I had my perspective view active and the "UV texture editor" window open.
__________________
Fred.
3D computer artist.
QuanticDream.
 
  04 April 2005
i know those.. very annoying and slowing down the execution of the script to zero.
i had it when i was working on larger particle systems and forgot to turn on the selection tool.

with some 100.000 particles you can turn off the computer then

cheers

alexx
 
  04 April 2005
> @ bruegger : does not work with maya 5.0.1 (and not in the MEL command reference.)

Good point. It was new in 6.
 
  04 April 2005
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:39 PM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.