State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:575957|
Problem summary
Node type does not have the __bool__ function implemented in the Python API.
Customer reported version
Nuke 14.1v4
Customer reported platform
CentOS 7
Steps to reproduce
1) Open Nuke.
2) Run the following code in the Script Editor:
node = nuke.createNode("NoOp")nuke.delete(node)try: if node: passexcept ValueError: node = None print("deleting node's instance") if node: should return False and catch the ValueError.node object seems to work as expected. For example:node = nuke.createNode("NoOp") nuke.delete(node) try: print(node) except ValueError: node = None print("deleting node's instance") We're sorry to hear that
Please tell us why