Problem summary
Parameters with modified 'widget' hints can some time be confusing.
For example dynamicArray and sortableArray widget type parameters created with createChildString() will appear correct, however you cannot add new elements to the array as if the parameter was created with createChildStringArray().
Customer reported version
Katana N/A
Customer reported platform
N/A
Steps to reproduce
1) Run the script:
node = NodegraphAPI.CreateNode('PrimitiveCreate', NodegraphAPI.GetRootNode())stringArray = node.getParameters().createChildString("stringArray", "initialValue")stringArray.setHintString(repr({'widget': 'sortableArray', 'forceArray': 'True', 'tupleSize': '1', 'size': '1'}))NodegraphAPI.SetNodeEdited(node, True)
2) Click the Add button on the created stringArray parameter
Expected behaviour
The stringArray widget parameter should now have two values in the array
Actual behaviour
The stringArray widget parameter still only has one value
Workaround
Use createChildStringArray()
Reproduced by support
This bug has been reproduced in:
Katana 4.0v5 - Windows 10, CentOS 7
Katana 4.0v1 - Windows 10
Katana 3.6v5 - Windows 10
Katana 3.6v1 - Windows 10
Katana 3.5v5 - Windows 10
Katana 3.5v1 - Windows 10
Katana 3.2v6 - Windows 10
Katana 3.2v1 - Windows 10
Katana 3.1v7 - Windows 10
Katana 3.1v1 - Windows 10
Katana 3.0v9 - Windows 10
Katana 3.0v1 - Windows 10
Katana 2.6v4 - Windows 10
Katana 2.6v1 - Windows 10
Katana 2.5v2 -Windows 10
Katana 2.5v1 -Windows 10
Earliest version tested