ID 380097 - The Cache/Localization menu is a MenuItem, rather than a Menu

Follow

Problem summary
The Cache/Localization menu is a MenuItem, rather than a Menu

This means you cannot Pythonically access items underneath it, when using .findItem


Steps to reproduce


1) Open Nuke

2) Run the below code in the Script Editor:

mainMenu = nuke.menu("Nuke")

print type(mainMenu.findItem('Cache/Localization'))

It should return <type 'Menu'>, instead it returns <type 'MenuItem'>


Workaround
You can access most localisation functions using nuke.localisation


Reproduced by support
This bug has been reproduced in:

Nuke 11.3v1 - Windows 10 - CentOS 6.9 - MacOSX 10.13

Nuke 11.2v1 - Windows 10

Nuke 11.1v1 - Windows 10

Nuke 11.0v1 - Windows 10

Nuke 10.5v1 - Windows 10

Nuke 10.0v1 - Windows 10 - CentOS 6.9 - MacOSX 10.13


Earliest version tested
Nuke 10.0v1 - This feature did not exist before this version


Expected behaviour
For the Localisation menu to be a Menu


Actual behaviour
The Localisation menu is a MenuItem


    We're sorry to hear that

    Please tell us why