Skip to content

Instantly share code, notes, and snippets.

@rafaelperez
Created August 21, 2020 16:51
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 rafaelperez/89b8c72685b37cef78433786fca99ef3 to your computer and use it in GitHub Desktop.
Save rafaelperez/89b8c72685b37cef78433786fca99ef3 to your computer and use it in GitHub Desktop.
# Add the following lines to your menu.py to adjust the zoom shortcut on Nuke's nodegraph
# Fell free to play with the zoom values so they fit your workflow/setup.
nuke.menu('Nuke').addCommand("Viewer/Zoom 1", "nuke.zoom(0.85)", "Alt+1", shortcutContext = 2)
nuke.menu('Nuke').addCommand("Viewer/Zoom 2", "nuke.zoom(0.20)", "Alt+2", shortcutContext = 2)
nuke.menu('Nuke').addCommand("Viewer/Zoom 3", "nuke.zoom(0.03)", "Alt+3", shortcutContext = 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment