State:New|TargetRelease:No Target|icon_bug|icon_nuke|database:public|Resolution:Fixed|BugID:358525|
Steps to reproduce
1) Copy the following script to your menu.py file:
import nukedef my_func(): print 'testing'def addCommand(): menu = nuke.menu('Properties') menu.addCommand('my tool', my_func, index = len(menu.items()))addCommand()
2) Launch Nuke
3) Navigate and right-click the Properties panel.
Result: The custom menu option is displayed at the top ( first position ) of the menu, when it should be at the last.
Workaround
If a node is created on launch, Nuke will populate the Properties Panel.
Modifying the Snippet above to quickly add and remove a 'Dot' node populates the menu:
import nukedef my_func(): print 'testing'def addCommand(): menu = nuke.menu('Properties') menu.addCommand('my tool', my_func, index = len(menu.items()))testNode = nuke.createNode('Dot')nuke.delete(testNode)addCommand() Reproduced by support
This bug has been reproduced in:
Nuke11.2v2 - Windows 7 - Mac10.13 - CentOS6.9
Nuke11.1v4 - Windows 7 - Mac10.13 - CentOS6.9
Nuke11.1v1 - Windows 7
Nuke11.0v4 - Windows 7 - Mac10.13 - CentOS6.9
Nuke11.0v1 - Windows 7
Nuke10.5v7 - Windows 7
Nuke10.5v1 - Windows 7 - Mac10.13 - CentOS6.9
Nuke10.0v6 - Windows 7
Nuke10.0v1 - Windows 7 - Mac10.13 - CentOS6.9
Nuke9.0v9 - Windows 7
Nuke9.0v1 - Windows 7 - Mac10.13 - CentOS6.9
Nuke8.0v7 - Windows 7
Nuke7.0v10 - Windows 7 - Mac10.13 - CentOS6.9
Earliest version tested
- This issue appears to be in all versions of the product
Expected behaviour
Properties Panel menu options should be created on launch to allow custom added items to be indexed
Actual behaviour
Properties Panel isnt created till a node is opened in the panel, causing indexing issues when creating a menu option on launch
We're sorry to hear that
Please tell us why