def METHOD_NAME(self):
    if self.isAnim:
        if self.obj:
            command = 'maya2egg -uo ft -a chan %s -o %s.anim.egg'%(self.mayaFile, self.mayaFile)
            self.process = Process(self, command, lambda p0=None: self.onProcessEnded(p0))
        else:
            command = 'maya2egg -uo ft -a model %s -o %s.model.egg'%(self.mayaFile, self.mayaFile)
            self.process = Process(self, command, lambda p0=None: self.onModelProcessEnded(p0))
    else:
        command = 'maya2egg -uo ft %s -o %s.egg'%(self.mayaFile, self.mayaFile)
        self.process = Process(self, command, lambda p0=None: self.onProcessEnded(p0))