Suppress errors in mayapy.exe

Is it possible to silence error and warning messages in mayapy?

I have a huge amount of massages after importing Pymel which I don’t need…

There’s a pymel file called pymal.conf which controls pymel logging behavior. You can find the default one in Program Files\Autodesk\Maya2020\Python\Lib\site-packages\pymel\pymel.conf or the similar location for your version of maya. If you change the levels there from WARNING to CRITICAL you won’t see error messages unless there’s an actual error.

That said: if you’re getting a lot of warnings it’s better to figure out why and fix them: they’re usually there for a reason

1 Like