Sep
18
addCommand to File menu
Posted in: NUKE from The FoundrySay I want to add a command to the File menu, I can do this by adding
nukeMenu = nuke.menu(‘Nuke’)
menu = nukeMenu.addMenu(‘File’)
menu.addCommand("Bla", "Bla()", "")
to the menu.py file.
nukeMenu = nuke.menu(‘Nuke’)
menu = nukeMenu.addMenu(‘File’)
menu.addCommand("Bla", "Bla()", "")
to the menu.py file.
My problem is that the addCommand always adds the new item to the bottom of the menu. I’m wondering if there is anyway of inserting an item into a giving place in the menu?
Post a Comment