Skip to content

Instantly share code, notes, and snippets.

@julik
Created June 28, 2012 11:38
Show Gist options
  • Save julik/3010826 to your computer and use it in GitHub Desktop.
Save julik/3010826 to your computer and use it in GitHub Desktop.
Automatically deduce the path to a Python function to use in Nuke UI
def do_something_useful():
print "Making comp pretty"
pass
#... when defining menus
menu.addCommand("Make comp pretty", do_something_useful, icon = os.path.join(ICONS_PATH, "dick.png"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment