-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.py
29 lines (25 loc) · 959 Bytes
/
menu.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#coding:utf-8
'''
Created on 2015/7/16
@author: TianD
'''
#import quickwrite
#import quickwrite_LandR
import quickwrite_new
#import autoUploadFootage
import quickSubmit
import autoStereoSetting
import tempCmd
import stereoCombine
menuDic = {
("TenQing", "TenQingLogo.png"): [["Quick Write", "quickwrite_new.quickWrite()", "alt+w", "quickwrite.png"],\
["Quick Submit Tool", "quickSubmit.quickSubmit()", "alt+r", "quickSubmit.png"],\
["Auto Set Stereo", "autoStereoSetting.setStereo()", "alt+l", "LeyeR.png"],\
["Stereo Vertical Combination", "stereoCombine.main()", "alt+b", "StereoVerticalCombination.png"],\
["Temp", "tempCmd.tempCmd()", "", ""]]
}
toolbar = nuke.menu("Nodes")
for key, value in menuDic.iteritems():
tdMenu = toolbar.addMenu(*key)
for v in value:
tdMenu.addCommand(*v)