Problem summaryWhen using the setMetadataRange functions to set a range, the function will cause the following error in some nodes:
File "<string>", line 16, in <module>
ValueError: Invalid min type: 'double'; expecting: 'float'
Note: This has only been reproduced in a few nodes, notably the 'Normal Strength' node.
Customer reported version mari.4.6v3
Customer reported platformwindows10
Steps to reproduce1) Create a new example head example project
2) Open the Node Graph
3) Open the Python Console, and paste in the following code snippet:
nodeGraph = mari.geo.current().nodeGraph()
NS = nodeGraph.createNode("Filter/Gamma")
NS.setMetadataRange("Gamma", 1.0, 2.0)
NS = nodeGraph.createNode("Filter/Normal Strength")
NS.setMetadataRange("Strength", 1.0, 2.0)
Result: Within the Node Graph, the 'Gamma' and 'Normal Strength' nodes are created, although the 'Normal Strength' node's range does not change and the following error can be seen in the Python Console:
File "<string>", line 16, in <module>
ValueError: Invalid min type: 'double'; expecting: 'float'
Expected behaviourThe 'Strength' attribute exists and the range should be amended to '1-2', as the Gamma node was.
Actual behaviourThe 'Normal Strength' node is created, but the range is not amended to '1-2'
WorkaroundUnknown.
Reproduced by supportThis bug has been reproduced in:
Mari 4.6v3 - Windows 10
Mari 4.6v1 - Windows 10
Unable to reproduce bug in:
Mari 4.5v2 - Windows 10
Earliest version testedMari 4.5v2
- The 'Normal Strength' node was not available before Mari 4.6v1