nuke.menu

nuke.menu(name) → Menu

Find and return the Menu object with the given name. Current valid menus are:

‘Nuke’ the application menu ‘Pane’ the UI Panes & Panels menu ‘Nodes’ the Nodes toolbar (and Nodegraph right mouse menu) ‘Properties’ the Properties panel right mouse menu ‘Animation’ the knob Animation menu and Curve Editor right mouse menu ‘Viewer’ the Viewer right mouse menu ‘Node Graph’ the Node Graph right mouse menu ‘Axis’ functions which appear in menus on all Axis_Knobs.

Parameters

name – The name of the menu to get. Must be one of the values above.

Returns

The menu.

Raises

RuntimeError – if Nuke isn’t in GUI mode.