What about redirecting stderr as well?

—
“There are no dumb questions” - Carl Sagan
________________________________
From: [email protected] <[email protected]> 
on behalf of Matteo Di Lena <[email protected]>
Sent: Monday, January 27, 2025 4:28:33 AM
To: Python Programming for Autodesk Maya <[email protected]>
Subject: [Maya-Python] Suppress Maya's logging output (not stdout)

Hi all!

I've been trying to find ways to suppress outputs of certain commands - such as 
blendShape, undo - without success, so I was wondering if anyone ever managed 
to get that working. I can pretty much shut everything inside the script editor 
by redirecting `sys.stdout` to `StringIO()`, but those things mentioned above 
will just stay around and pollute the output.

Thanks for any help!

Matteo

--
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
To view this discussion visit 
https://groups.google.com/d/msgid/python_inside_maya/168dc9e3-c048-4ff6-9a61-f36fea74c657n%40googlegroups.com<https://groups.google.com/d/msgid/python_inside_maya/168dc9e3-c048-4ff6-9a61-f36fea74c657n%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/python_inside_maya/CYXPR10MB7975F893E92D4890E519B521F6EC2%40CYXPR10MB7975.namprd10.prod.outlook.com.

Reply via email to