ID 442382 - The array cannot be resized and always returns False with an Array_Knob function in Python.

Follow

Problem summary
The array cannot be resized and always returns False with an Array_Knob function in Python.


Customer reported version
nuke.11.3v5


Customer reported platform
ubuntu


Steps to reproduce

1) From Nuke, create any node and select it.

2) In the Script Editor, run the following snippet:

n = nuke.selectedNode()
k = nuke.Array_Knob("test", "matrix_test", 9)
k.resize(3, 3)
n.addKnob(k)
print k.width()

3) View the output and the node properties.


Expected behavior
The array should be resized and the output should print the results.


Actual behavior
The array is not resized, and calling resize() does nothing in the script editor. Printing the resize() command always returns False.


Workaround
There is no available workaround at this time.


Reproduced by Support in
Nuke 12.1v4 - Windows 10

Nuke 12.0v1 - Windows 10

Nuke 11.0v1 - Windows 10

Nuke 10.0v1 - Windows 10

Nuke 9.0v1 - Windows 10

Nuke 8.0v1 - Windows 10


Earliest version tested
Nuke 8.0v1 - This issue appears to be in all versions of the product

    We're sorry to hear that

    Please tell us why