What about redirecting stderr as well?

—
“There are no dumb questions” - Carl Sagan
________________________________
From: python_inside_maya@googlegroups.com <python_inside_maya@googlegroups.com> 
on behalf of Matteo Di Lena <dilena.mat...@gmail.com>
Sent: Monday, January 27, 2025 4:28:33 AM
To: Python Programming for Autodesk Maya <python_inside_maya@googlegroups.com>
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 
python_inside_maya+unsubscr...@googlegroups.com<mailto:python_inside_maya+unsubscr...@googlegroups.com>.
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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/python_inside_maya/CYXPR10MB7975F893E92D4890E519B521F6EC2%40CYXPR10MB7975.namprd10.prod.outlook.com.

Reply via email to