How to disable maya viewport while running a bake or export process?
I couldn’t remember what’s the ui object name that controls Maya viewport.
Today I looked online for that little code snippet and could find it.
I felt so frustrated that it drove me to start this blog 🙂
So here we go.
When running a process that loops through the scene frames, like bake animation or export geo,
Maya will update the viewport per frame. This update is redundant and will slow the process down.
So to avoid that, we can turn off the viewport while the code is running.