User Guide Cancel

sbslibrary | Substance 3D Automation ToolKit

sbslibrary

Content included in sbslibrary module:

Module sbslibrary provides the libraries of Filters, Functions, FxMap nodes and Widgets that are defined in the modules sbsfilters, sbsfunctions, sbsfxmapnodes and sbswidgets.

sbslibrary.sbslibrary.__convertToEnum(aKey, aGetEnumFunction)
sbslibrary.sbslibrary.__convertToEnum(aKey, aGetEnumFunction)
sbslibrary.sbslibrary.__convertToEnum(aKey, aGetEnumFunction)
sbslibrary.sbslibrary.getAngleWidgetByType(aType)
sbslibrary.sbslibrary.getAngleWidgetByType(aType)
sbslibrary.sbslibrary.getAngleWidgetByType(aType)

getSliderWidgetByType(aType) Get the given widget

sbslibrary.sbslibrary.getButtonWidgetByType(aType)
sbslibrary.sbslibrary.getButtonWidgetByType(aType)
sbslibrary.sbslibrary.getButtonWidgetByType(aType)

getSliderWidgetByType(aType) Get the given widget

sbslibrary.sbslibrary.getColorWidgetByType(aType)
sbslibrary.sbslibrary.getColorWidgetByType(aType)
sbslibrary.sbslibrary.getColorWidgetByType(aType)

getSliderWidgetByType(aType) Get the given widget

sbslibrary.sbslibrary.getDefaultWidget(aWidget)
sbslibrary.sbslibrary.getDefaultWidget(aWidget)
sbslibrary.sbslibrary.getDefaultWidget(aWidget)

Get the given widget

Parameters: aWidget (WidgetEnum) – widget identifier
Returns: the widget as a InputParamWidget
sbslibrary.sbslibrary.getDropDownWidgetByType(aType)
sbslibrary.sbslibrary.getDropDownWidgetByType(aType)
sbslibrary.sbslibrary.getDropDownWidgetByType(aType)

getSliderWidgetByType(aType) Get the given widget

sbslibrary.sbslibrary.getFilterDefinition(aFilter)
sbslibrary.sbslibrary.getFilterDefinition(aFilter)
sbslibrary.sbslibrary.getFilterDefinition(aFilter)

Get the definition of the given filter (inputs, outputs, parameters)

Parameters: aFilter (FilterEnum or str) – filter identifier
Returns: a CompNodeDef object if found, None otherwise
sbslibrary.sbslibrary.getFilterEnum(aFilterName)
sbslibrary.sbslibrary.getFilterEnum(aFilterName)
sbslibrary.sbslibrary.getFilterEnum(aFilterName)

Get the enum value of the given filter

Parameters: aFilterName (str) – filter identifier
Returns: the filter as a FilterEnum
sbslibrary.sbslibrary.getFunctionDefinition(aFunction)
sbslibrary.sbslibrary.getFunctionDefinition(aFunction)
sbslibrary.sbslibrary.getFunctionDefinition(aFunction)

Get the definition of the given function (inputs, outputs, parameters)

Parameters: aFunction (FunctionEnum or str) – function identifier
Returns: a FunctionDef object if found, None otherwise
sbslibrary.sbslibrary.getFunctionEnum(aFunctionName)
sbslibrary.sbslibrary.getFunctionEnum(aFunctionName)
sbslibrary.sbslibrary.getFunctionEnum(aFunctionName)

Get the enum value of the given function

Parameters: aFunctionName (str) – function identifier
Returns: the function as a FunctionEnum
sbslibrary.sbslibrary.getFunctionGetType(aType)
sbslibrary.sbslibrary.getFunctionGetType(aType)
sbslibrary.sbslibrary.getFunctionGetType(aType)

Get the appropriate function GET_<> depending on the type of the input parameter

Parameters: aType (ParamTypeEnum) – the type of data to get
Returns: the function GET_<> corresponding to the given type if succeed, None otherwise
sbslibrary.sbslibrary.getFxMapNodeDefinition(aFxMapNode)
sbslibrary.sbslibrary.getFxMapNodeDefinition(aFxMapNode)
sbslibrary.sbslibrary.getFxMapNodeDefinition(aFxMapNode)

Get the definition of the given FxMap node (inputs, outputs, parameters)

Parameters: aFxMapNode (FxMapNodeEnum or str) – FxMap node identifier
Returns: a CompNodeDef object if found, None otherwise
sbslibrary.sbslibrary.getFxMapNodeEnum(aFxMapNodeName)
sbslibrary.sbslibrary.getFxMapNodeEnum(aFxMapNodeName)
sbslibrary.sbslibrary.getFxMapNodeEnum(aFxMapNodeName)

Get the enum value of the given function

Parameters: aFxMapNodeName (str) – FxMap node identifier
Returns: the FxMap node as a FxMapNodeEnum
sbslibrary.sbslibrary.getInputBridgeDefinition()
sbslibrary.sbslibrary.getInputBridgeDefinition()
sbslibrary.sbslibrary.getInputBridgeDefinition()

Get the definition of an input bridge node (inputs, outputs, parameters)

Returns: a CompNodeDef object if found, None otherwise
sbslibrary.sbslibrary.getIterationParamInput()
sbslibrary.sbslibrary.getIterationParamInput()
sbslibrary.sbslibrary.getIterationParamInput()

Get the description of the ‘iteration’ parameter

Returns: the CompNodeParam describing this parameter
sbslibrary.sbslibrary.getOutputBridgeDefinition()
sbslibrary.sbslibrary.getOutputBridgeDefinition()
sbslibrary.sbslibrary.getOutputBridgeDefinition()

Get the definition of an output bridge node (inputs, outputs, parameters)

Returns: a CompNodeDef object if found, None otherwise
sbslibrary.sbslibrary.getSliderWidgetByType(aType)
sbslibrary.sbslibrary.getSliderWidgetByType(aType)
sbslibrary.sbslibrary.getSliderWidgetByType(aType)

Get the given widget

sbslibrary.sbslibrary.getWidgetByType(aType)
sbslibrary.sbslibrary.getWidgetByType(aType)
sbslibrary.sbslibrary.getWidgetByType(aType)

getSliderWidgetByType(aType) Get the given widget

Get help faster and easier

New user?