State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:13.0v6|BugID:480813|
Problem summary
list.sort() can no longer be used on a list of Nodes when sorting via Python
Customer reported version
nuke.13.0v2
Customer reported platform
Windows 10
Steps to reproduce
1) Open Nuke
2) Create two Grade nodes
3) Run the following code in the Script Editor, it will error:
nodes = nuke.allNodes()
print(nodes)
nodes.sort()
print(nodes)
# Result: [<Grade2 at 0x0000028F9BE73B40>, <Grade1 at 0x0000028F9BE73BA0>, <Viewer1 at 0x0000028F9BE733C0>]
Traceback (most recent call last):
File "<string>", line 3, in <module>
TypeError: '<' not supported between instances of 'Node' and 'Node'
We're sorry to hear that
Please tell us why