How to use:
Python
source.Maya.misc_tools.
viewportOff
Decorator - turn off Maya display while func is running. if func will fail, the error will be raised after.
func (function) – function during when the viewport will be turned off