diff --git a/menu.py b/menu.py index 36c9b29..8ef5a0f 100644 --- a/menu.py +++ b/menu.py @@ -1,5 +1,9 @@ # -*- coding: UTF-8 -*- import tabtabtab +WINDOW_CONTEXT = 0 +APPLICATION_CONTEXT = 1 +DAG_CONTEXT = 2 + m_edit = nuke.menu('Nuke').findItem('Edit') -m_edit.addCommand('Tabtabtab', tabtabtab.main, 'Tab') \ No newline at end of file +m_edit.addCommand('Tabtabtab', tabtabtab.main, 'Tab', shortcutContext=DAG_CONTEXT) \ No newline at end of file