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')
def getTranslators(nodeType): """ Return a list of translator names for the given nodeType """ return [x[0] for x in core.listTranslators(nodeType)]