viewportOff

source.Maya.misc_tools.viewportOff(func)

Decorator - turn off Maya display while func is running. if func will fail, the error will be raised after.

Parameters

func (function) – function during when the viewport will be turned off