def launchTools(toolName, toolFile, logLvl='info'): """ launch maya tool :param toolName: Maya tool name :type toolName: str :param toolFile: ToolManager file (__tm__.py) :type toolFile: str :param logLvl : Log level ('critical', 'error', 'warning', 'info', 'debug', 'detail') :type logLvl: str """ sys.argv = [toolName, logLvl, pUtil.getMayaMainWindow()] execfile(toolFile)
def mayaLaunch(logLvl='info'): """ Tool launcher for maya :param logLvl : Log level ('critical', 'error', 'warning', 'info', 'debug', 'detail') :type logLvl: str :return: launched tool :rtype: Rigger """ global window try: window.close() except: pass window = Rigger(logLvl=logLvl, parent=pUtil.getMayaMainWindow()) window.show() return window