Skip to content

Instantly share code, notes, and snippets.

@rafaelperez
Created August 20, 2020 22:15
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/6f09e3424e8e9b4dc6c667ea8fe55300 to your computer and use it in GitHub Desktop.
Save rafaelperez/6f09e3424e8e9b4dc6c667ea8fe55300 to your computer and use it in GitHub Desktop.
# Add the following lines to your `menu.py`
nuke.menu('Nuke').addCommand("Viewer/Uprez", "nuke.activeViewer().node().knob('downrez').setValue(str(nuke.activeViewer().node().knob('downrez').getValue()-1))", "Alt+z")
nuke.menu('Nuke').addCommand("Viewer/Downrez", "nuke.activeViewer().node().knob('downrez').setValue(str(nuke.activeViewer().node().knob('downrez').getValue()+1))", "Alt+x")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment