Skip to content

Instantly share code, notes, and snippets.

@sanfx
Created July 29, 2013 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sanfx/6105696 to your computer and use it in GitHub Desktop.
Save sanfx/6105696 to your computer and use it in GitHub Desktop.
# Add Custom menu for scripts
menubar=nuke.menu("Nodes")
m=menubar.addMenu("San")
# Add Python scripts to the custom menu
m.addCommand("Move Up", "import moveupdown; \
moveupdown.moveUp()", icon="PostageStamp.png")
m.addCommand("Move Down", "import moveupdown; \
moveupdown.moveDown()", icon="PostageStamp.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment