예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
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
예제 #4
0
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