-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGradePass.nk
243 lines (243 loc) · 6.06 KB
/
GradePass.nk
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
set cut_paste_input [stack 0]
push $cut_paste_input
Group {
name GradePass1
knobChanged "this_node = nuke.thisNode()\nthis_knob = nuke.thisKnob()\n\nif this_knob.name() in (\"viewer\"):\n viewer = this_node\[\"viewer\"].getValue()\n \n with this_node:\n switch_node = nuke.toNode(\"MainSwitch\")\n switch_node\[\"which\"].setValue(viewer)\n\nif this_knob.name() in (\"disable_adjustments\"):\n disable_check = this_node\[\"disable_adjustments\"].getValue()\n disable_label = this_node\[\"label_disable_text\"]\n\n if int(disable_check) == 1:\n disable_label.setValue(\"<h3><font color='#CC3333'>ALL ADJUSTMENTS ARE DISABLED!\")\n else:\n disable_label.setValue(\" \")\n\n"
tile_color 0x7697ffff
label "\[value in]"
note_font Verdana
selected true
xpos -764
ypos 284
addUserKnob {20 main_tab l Main}
addUserKnob {26 logo_1 l "" +STARTLINE T "\n<br><font size=7> Grade<font color=\"#7A8EB3\"><font size=7><b>Pass</color><br>"}
addUserKnob {26 ""}
addUserKnob {41 in l "Select AOV" T MainShuffle.in}
addUserKnob {4 viewer l Viewer M {"Final Result" "Solo AOV" "All Layers" "" "" ""}}
addUserKnob {26 ""}
addUserKnob {6 disable_adjustments l "Disable Adjustments" +STARTLINE}
addUserKnob {26 label_disable_text l "" -STARTLINE T " "}
addUserKnob {26 text_1 l "" +STARTLINE T " "}
addUserKnob {41 blackpoint T MainGrade.blackpoint}
addUserKnob {41 whitepoint T MainGrade.whitepoint}
addUserKnob {41 black l lift T MainGrade.black}
addUserKnob {41 white l gain T MainGrade.white}
addUserKnob {41 multiply T MainGrade.multiply}
addUserKnob {41 add l offset T MainGrade.add}
addUserKnob {41 gamma T MainGrade.gamma}
addUserKnob {26 text_2 l "" +STARTLINE T " "}
addUserKnob {41 hue_rotation l "hue rotation" T HueShift1.hue_rotation}
addUserKnob {41 saturation T Saturation1.saturation}
addUserKnob {26 text l "" +STARTLINE T " "}
addUserKnob {26 "" l mask T ""}
addUserKnob {41 maskChannelMask l "" -STARTLINE T MainGrade.maskChannelMask}
addUserKnob {41 inject -STARTLINE T MainGrade.inject}
addUserKnob {41 invert_mask l invert -STARTLINE T MainGrade.invert_mask}
addUserKnob {41 fringe -STARTLINE T MainGrade.fringe}
addUserKnob {41 mix T Keymix1.mix}
addUserKnob {26 empty1 l "" +STARTLINE T " "}
addUserKnob {26 ""}
addUserKnob {26 credits l "" +STARTLINE T "Grade<b><font color=\"#7A8EB3\">Pass</font></b> v01.1 © 2024</b>\n<p><font size=2>Danilo de Lucio | VFX Compositor & TD.</font>\n<br><a href=\"https://www.danilodelucio.com/\"><font color=\"#bbbbbb\" size=2>www.danilodelucio.com</a> - <a href=\"https://github.com/danilodelucio/GradePass\"><font color=\"#bbbbbb\" size=2>Github</a>"}
addUserKnob {20 about_tab l About}
addUserKnob {26 ""}
addUserKnob {26 text_3 l "" +STARTLINE T "This node is designed to grade render passes directly without needing to extract them. \nIt uses the subtractive method, and you can view and tweak the selected AOV in one single node.\n\nIt contains the same knobs as the Grade node, along with Hue Rotation, Saturation and some extra features.\n\nPlease note that it does not address NaN/Infinite values or perform complex calculations to fix AOV issues.\n\n\nI hope you enjoy the tool!\n\nDanilo de Lucio | VFX Compositor & TD\nwww.danilodelucio.com\n"}
addUserKnob {26 ""}
}
Input {
inputs 0
name Input1
xpos -682
ypos -500
}
Dot {
name Dot150
note_font "Verdana Bold"
note_font_size 30
xpos -648
ypos -390
}
set Nd86c2c00 [stack 0]
Dot {
name Dot151
note_font "Verdana Bold"
note_font_size 30
xpos -973
ypos -390
}
set Nd86c2800 [stack 0]
Dot {
name Dot1
note_font "Verdana Bold"
note_font_size 30
xpos -1458
ypos -390
}
LayerContactSheet {
center true
showLayerNames {{MainSwitch.which==2}}
name LayerContactSheet1
selected true
xpos -1492
ypos 126
}
Dot {
name Dot3
note_font "Verdana Bold"
note_font_size 30
xpos -1458
ypos 440
}
push $Nd86c2800
Shuffle1 {
in none
name MainShuffle
label "\[value in]"
xpos -1007
ypos -329
}
Shuffle2 {
fromInput1 {{0} B}
fromInput2 {{0} B}
mappings "4 rgba.red 0 0 rgba.red 0 0 rgba.green 0 1 rgba.green 0 1 rgba.blue 0 2 rgba.blue 0 2 white -1 -1 rgba.alpha 0 3"
name Shuffle1
label "\[value in1]"
xpos -1007
ypos -261
}
Dot {
name Dot148
note_font "Verdana Bold"
note_font_size 30
xpos -973
ypos -175
}
set Nd86fd000 [stack 0]
Dot {
name Dot5
note_font "Verdana Bold"
note_font_size 30
xpos -839
ypos 121
}
Input {
inputs 0
name mask
xpos -1087
ypos -131
number 1
}
Dot {
name Dot8
note_font "Verdana Bold"
note_font_size 30
xpos -1053
ypos -75
}
set Nd86fc400 [stack 0]
Dot {
name Dot6
note_font "Verdana Bold"
note_font_size 30
xpos -1053
ypos -18
}
set Nd86fc000 [stack 0]
Dot {
name Dot7
note_font "Verdana Bold"
note_font_size 30
xpos -1053
ypos 33
}
push $Nd86fc000
push $Nd86fc400
push $Nd86fd000
Dot {
name Dot2
note_font "Verdana Bold"
note_font_size 30
xpos -1246
ypos -175
}
Grade {
inputs 1+1
name MainGrade
xpos -1280
ypos -78
disable {{parent.disable_adjustments}}
}
Saturation {
inputs 1+1
name Saturation1
xpos -1280
ypos -22
disable {{parent.disable_adjustments}}
}
HueShift {
inputs 1+1
name HueShift1
xpos -1280
ypos 29
disable {{parent.disable_adjustments}}
}
Dot {
name Dot4
note_font "Verdana Bold"
note_font_size 30
xpos -1246
ypos 121
}
push $Nd86fd000
Keymix {
inputs 3
name Keymix1
xpos -1007
ypos 111
}
Dot {
name Dot149
note_font "Verdana Bold"
note_font_size 30
xpos -973
ypos 253
}
set Nd871a000 [stack 0]
push $Nd871a000
push $Nd86fd000
push $Nd86c2c00
Merge2 {
inputs 2
operation from
name Merge_FROM
xpos -682
ypos -179
}
Merge2 {
inputs 2
operation plus
name Merge_PLUS
xpos -682
ypos 249
}
set Nd8743800 [stack 0]
Switch {
inputs 3
name MainSwitch
xpos -682
ypos 436
}
Output {
name Output1
xpos -682
ypos 573
}
push $Nd8743800
Viewer {
frame_range 1001-1095
fps 23.97602463
viewerProcess "sRGB (ACES)"
name Viewer1
xpos -487
ypos 350
}
end_group