Problem summary
Setting Vector4f parameters with setMetadata() does not work
Customer reported version
Mari 4.8v2
Customer reported platform
n/a
Steps to reproduce
1) Open any project
2) Create a Grade node
3) With the Grade selected, run the following snippet:
nodeGraph = mari.geo.current().nodeGraph()node = nodeGraph.selectedNodeList()[0]node.setMetadata('Gain', (0.5,0.5,0.5,0.5))
4) Inspect the Grade's properties
Expected behaviour
The Grade's Gain value should become 0.5.
Actual behaviour
The Gain value does not change, and an error is returned in the console:
Traceback (most recent call last):File "<string>", line 4, in <module>ValueError: Cannot set parameter 'Gain'
Workaround
Pass in the new Vector4f values as a list, e.g.:
nodeGraph = mari.geo.current().nodeGraph()node = nodeGraph.selectedNodeList()[0]node.setMetadata('Gain', [0.5,0.5,0.5,0.5])
Reproduced by support
This bug has been reproduced in:
Mari 5.0v2 - Windows 10 - CentOS 7.9
Mari 4.8v2 - Windows 10
Mari 4.8v1 - Windows 10 - CentOS 7.9 - regression
Unable to reproduce bug in:
Mari 4.7v6 - Windows 10 - CentOS 7.9
Earliest version tested
Mari 4.7v6 - This issue doesn't appear in this version and has regressed