View Full Version : catch vs. catchQuiet

03 March 2006, 12:54 PM
According to ye olde holy MayaDocs, the only difference between catch and catchQuiet is...

...that catchQuiet supresses warnings and errors.

But in practice there doesn't seem to be any difference at all. Warnings come thick and fast anyway with catchQuiet. Is there anyway around this?


03 March 2006, 02:20 PM
Thats not entirely true. In some, rare, cases it seems to actually make a difference; although I cant point one out right now :)
So, as to my knowledge, no, you cant suppress all errors/warnings. But then again there might be some undocumented nasty trick to pull it off :)

03 March 2006, 04:26 PM
catchQuiet doesn't suppress ALL warnings/errors...just the runtime errors that it has caught.

To see the difference run these...


The catchQuiet line won't spit out an error but the catch one will.

03 March 2006, 05:03 AM
Ah, thanks for that!

Obviously there are errors and then there are errors.

05 May 2006, 12:02 PM
I am being held back by lots of warnings and errors for intersect regardless?!?

catchQuiet(`intersect -ch 0 -cos 0 -fs 1 -tol 0.001 $iSurf[0] $surface`)

Truely disfunctional might need to find a way around intersect or maybe there is a way to build wrappers with better error supression there should be a global way. I call the function with this call in it with catchQuite too, but still no difference. (That's not right!)

CGTalk Moderation
05 May 2006, 12:02 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.