From 743da1ed4f0def320e4702afa1339a1e68e856ef Mon Sep 17 00:00:00 2001 From: NateScarlet Date: Fri, 18 Aug 2017 21:22:25 +0800 Subject: [PATCH] adjust shortcut context fix problem mentioned in dbr/tabtabtab-nuke#11 --- menu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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