ID 332681 - Naming a node 'panel' makes it unrecognisable when calling 'nuke.toNode()'

Follow

Problem summary
When naming nodes, users may call them after Nuke functions/attributes.

In one case, naming a node 'panel' will not be able to be called via nuke.toNode() or similar functions.
This appears to be a case sensitive word, naming another node 'Panel' will work correctly.

Customer reported version
nuke.11.1v1

Steps to reproduce

1) Open Nuke, Create a Grade node

2) Rename the grade node 'panel'

3) Enter the following into your script editor and execute it:

test = nuke.toNode('panel')
print test
Result: The Script Editor will return 'none'

Workaround

Option 1
Use another naming convention ( e.g " Panel, panel1, pane, etc. " )

You can check if your script contains 'panel' via searching your Node Graph with '/'

Option 2
Alternatively, 'nuke.getSelected()' recognises the node.

Select the node and enter the following into the Script Editor
test = nuke.selectedNodes()

print test[0]


Reproduced by support
This bug has been reproduced in:
Nuke11.1v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.0v4 - Windows 7 - Mac10.12 - CentOS6.9
Nuke11.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v7 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.5v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.0v6 - Windows 7 - Mac10.12 - CentOS6.9
Nuke10.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke9.0v9 - Windows 7 - Mac10.12 - CentOS6.9
Nuke9.0v1 - Windows 7 - Mac10.12 - CentOS6.9
Nuke8.0v7 - Windows 7 - Mac10.12 - CentOS6.9|
Nuke7.0v10 - Windows 7 - Mac10.12 - CentOS6.9

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

Expected behaviour
Nuke.toNode() should be able to find a node called 'panel'

Actual behaviour
Nuke.toNode() does not recognise a node named 'panel'

It is recognised if a user searches for its name via '/' or the Nuke function 'nuke.getSelected()'

    We're sorry to hear that

    Please tell us why