Hi,
I was wondering if anyone could help me with adding an icon to a custom sub menu in menu.py.
My code is:
m = sphereToolBar.addMenu("customTools", "customTools.png")
m.addCommand("Draw/AspectGuide", "nuke.createNode(\"AspectGuide\")", icon="AspectGuide.png")
This I understand:
First line defines the new menu (customTools) on my custom toolbar (sphereToolBar) and adds the 'customTools.png' icon to it.
The second line makes a sub menu (Draw) under 'customTools' and adds the gizmo AspectGuide to it. The Gizmo also has a .png file associated to give the gizmo an icon.
My question is, how do I add an icon to my sub menu? In my case 'Draw'.
Any help would be greatly appreciated.
Matt
ps. is there also any way of increasing the size of the menu overall. As an example in the standard Nuke 3D menu the icon / spacing is bigger in the main menu than the 'geometry' sub folder. Just wondered. Really enjoying getting a better understanding of Nuke UI customisation.










