def __enter__(self): '''open the undo chunk''' if self.force or MAYA_VERSION < 2011: self.force = True mc.undoInfo(openChunk=True)