forked from weijer/NukeToolSet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
command.py
280 lines (208 loc) · 4.7 KB
/
command.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
# coding=utf-8
# author=weijer
# http://www.cgspread.com
import os.path
import nuke
import python.CreatePointCloud.CreatedPointCloud as CreatedPointCloud
import python.NukeFXSExporter.NukeFXSExporter as NukeFXSExporter
import python.ToolSet as ToolSet
import python.pw_multiScriptEditor as ScriptEditor
from python.Channel import autoComper, PreCompForArnold, RenderLayer
from python.ToolSet import ReadAfterRender
from python.cryptomatte import cryptomatte_utilities
from python.mamoworld.mochaImportPlus import loadMochaImport
from python.mamoworld.workflow import relativeFilePath
from python.packproject import nuke2pack
base_dir = os.path.dirname(__file__)
loadMochaImport.load()
loadMochaImport.addIconPath(base_dir)
import mochaimport
def run_pack():
"""
run package nuke project plugin
:return:
"""
wgt = nuke2pack.PackageDialog()
wgt.exec_()
def run_ScriptEditor():
"""
run script editor
:return:
"""
ScriptEditor.showNuke()
def run_autoComper():
"""
run autoComper script
:return:
"""
autoComper.autoComper()
def run_cryptomatte_create():
"""
run cryptomatte script
:return:
"""
cryptomatte_utilities.cryptomatte_create_gizmo()
def run_decryptomatte_all():
"""
run cryptomatte script
:return:
"""
cryptomatte_utilities.decryptomatte_all()
def run_decryptomatte_selected():
"""
run cryptomatte script
:return:
"""
cryptomatte_utilities.decryptomatte_selected()
def run_encryptomatte():
"""
run cryptomatte script
:return:
"""
cryptomatte_utilities.encryptomatte_create_gizmo()
def run_preCompForArnold():
"""
run preCompForArnold script
:return:
"""
PreCompForArnold.preCompForArnold()
def run_RenderLayer():
"""
run RenderLayer script
:return:
"""
RenderLayer.RenderLayer()
def run_presetBackdrop():
"""
run presetBackdrop script
:return:
"""
ToolSet.presetBackdrop.presetBackdrop()
def run_browseDir():
"""
run browseDir script
:return:
"""
ToolSet.browseDir.browseDirByNode()
def run_SingleToEquence():
"""
run SingleToEquence script
:return:
"""
ToolSet.single_to_sequence.main()
def run_switchShot():
"""
run switch_shot script
:return:
"""
ToolSet.switch_shot.main()
def run_correctErrorReadNode():
"""
run correct_error_read_node script
:return:
"""
ToolSet.correct_error_read_node.main()
def run_ListShuffle():
"""
run correct_error_read_node script
:return:
"""
ToolSet.ListShuffle.main()
def run_replaceReadNodePath():
"""
run replace_read_node_path script
:return:
"""
ToolSet.replace_read_node_path.main()
def run_toggleInput():
"""
run toggle_input script
:return:
"""
ToolSet.toggle_input.main()
def run_toggleStamp():
"""
run toggle_stamp script
:return:
"""
ToolSet.toggle_stamp.main()
def run_relativeFilePath():
"""
run mamoworld script
@return:
"""
relativeFilePath.showReplaceFilePathDialog()
def run_createStabilizedView():
"""
@return:
"""
mochaimport.createStabilizedView()
def run_createCornerPin():
"""
@return:
"""
mochaimport.createCornerPin()
def run_createTracker4Node():
"""
@return:
"""
mochaimport.createTracker4Node()
def run_createTracker3Node():
"""
@return:
"""
mochaimport.createTracker3Node()
def run_createRotoPaintNodeMI():
"""
@return:
"""
mochaimport.createRotoPaintNodeMI()
def run_createRotoNodeMI():
"""
@return:
"""
mochaimport.createRotoNodeMI()
def run_createGridWarpNodeMI():
"""
@return:
"""
mochaimport.createGridWarpNodeMI()
def run_createTransformNodeMI():
"""
@return:
"""
mochaimport.createTransformNodeMI()
def run_createCameraAndPointCloud():
"""
@return:
"""
mochaimport.createCameraAndPointCloud()
def run_createCameraRig():
"""
@return:
"""
mochaimport.createCameraRig()
def run_showSettings():
"""
@return:
"""
mochaimport.showSettings()
def run_createdPointCloud():
"""
@return:
"""
CreatedPointCloud.create_cloud_point()
def run_nukeFXSExporter():
"""
@return:
"""
NukeFXSExporter.silhouetteFxsExporter()
def run_readFromWrite():
"""
@return:
"""
ReadAfterRender.RenderWrite().read_from_write()
def run_releaseNotes():
nuke.message('<p style="color:#99CCFF;font-weight:600">Nuke ToolSet Ver1.0</p>'
'<p style="color:#6699cc;font-weight:600">By weijer</p>'
'<p style="color:#99CCFF;font-weight:600">联系QQ:250557277</p>')