Пример #1
0
def registerDriverTemplates():
    skipDrivers = ['exr', 'deepexr']
    # register driver templates
    for transName, arnoldNode in core.listTranslators("aiAOVDriver"):
        if not (transName in skipDrivers): # we want to use a custom ui for the EXR translator
            templates.registerAutoTranslatorUI(arnoldNode, "aiAOVDriver", transName, skipEmpty=True)

    templates.registerDefaultTranslator('aiAOVDriver', 'exr')
def registerFilterTemplates():
    # register driver templates
    for transName, arnoldNode in core.listTranslators("aiAOVFilter"):
        templates.registerAutoTranslatorUI(arnoldNode,
                                           "aiAOVFilter",
                                           transName,
                                           skipEmpty=True)

    templates.registerDefaultTranslator('aiAOVFilter', 'gaussian')
def registerDriverTemplates():
    skipDrivers = ['exr', 'deepexr']
    # register driver templates
    for transName, arnoldNode in core.listTranslators("aiAOVDriver"):
        if not (transName in skipDrivers
                ):  # we want to use a custom ui for the EXR translator
            templates.registerAutoTranslatorUI(arnoldNode,
                                               "aiAOVDriver",
                                               transName,
                                               skipEmpty=True)

    templates.registerDefaultTranslator('aiAOVDriver', 'exr')
Пример #4
0
def getTranslators(nodeType):
    """
    Return a list of translator names for the given nodeType
    """
    return [x[0] for x in core.listTranslators(nodeType)]
Пример #5
0
def registerFilterTemplates():
    # register driver templates
    for transName, arnoldNode in core.listTranslators("aiAOVFilter"):
        templates.registerAutoTranslatorUI(arnoldNode, "aiAOVFilter", transName, skipEmpty=True)

    templates.registerDefaultTranslator('aiAOVFilter', 'gaussian')
Пример #6
0
def getTranslators(nodeType):
    """
    Return a list of translator names for the given nodeType
    """
    return [x[0] for x in core.listTranslators(nodeType)]