I might be missing something here but i cant get - set a parameter , like opacity or color.
Support is appreciated.
Thank you.
# Init the context
aContext = context.Context()
aSBSFileAbsPath = 'pathname\Input.sbs'
(works)
# Creation of a SBSDocument object from an existing .sbs file, parsing and writing
sbsDoc = substance.SBSDocument(aContext, aSBSFileAbsPath)
sbsDoc.parseDoc() # Parse the .sbs file and put into sbsDoc the object structure contained in the substance
(works)
# Getting all the graphs of a package
aGraphList = sbsDoc.getSBSGraphList()
# the graph
aGraph = aGraphList[0]
(works)
# Get a particular node from its uid
myNode = aGraph.getNode(aNode='1289452818')
(works)
uniform_color_node = aGraph.getNode(aNode='1545322112')
(works)
blend_1_node = aGraph.getNode(aNode='1355325589') # Get the resource from its identifier
blend_2_node = aGraph.getNode(aNode='1355352560')
(works)
aGraph.connectNodes(aLeftNode = blend_1_node, aRightNode = blend_2_node)
(works)
PROBLEM STARTS HERE
uniform_color_node.getParameterValue('ColorOutput')
uniform_color_node.setParameterValue('ColorOutput', [1, 0, 0, 1])
blend_1_node.setParameterValue('Opacity', 0)
with error
line 234, in setParameterValue
raise SBSLibraryError('Parameter '+aParameterName+' cannot be set on '+self.getDisplayName())
pysbs.api_exceptions.SBSLibraryError: Parameter ColorOutput cannot be set on Filter uniform