Skip to content

Commit 0e9cc52

Browse files
committed
Remove redundancies from pure Nuke implementation.
1 parent 5042ad8 commit 0e9cc52

File tree

1 file changed

+16
-31
lines changed

1 file changed

+16
-31
lines changed

model/GamutCompress.nk

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Group {
1111
addUserKnob {41 magenta t "Maximum distance beyond the blue-red gamut boundary to compress to the gamut boundary." T compress.magenta}
1212
addUserKnob {41 yellow t "Maximum distance beyond the red-green gamut boundary to compress to the gamut boundary." T compress.yellow}
1313
addUserKnob {6 overlay l "graph overlay" +STARTLINE}
14-
overlay true
1514
addUserKnob {22 reset t "Reset knobs to default values. Distance limits are calculated based on an the average of a selection of digital cinema cameras." T "n = nuke.thisNode()\nnuke.root().begin()\ndefaults = \{\n 'threshold': 0.8,\n 'power': 1.2,\n 'cyan': 0.09,\n 'magenta':0.24,\n 'yellow': 0.12,\n\}\nfor k, v in defaults.items():\n n\[k].setValue(v)" +STARTLINE}
1615
addUserKnob {26 ""}
1716
addUserKnob {4 direction M {forward inverse}}
@@ -30,7 +29,7 @@ Group {
3029
xpos -6
3130
ypos -174
3231
}
33-
set N6f4c5800 [stack 0]
32+
set N3ebe5400 [stack 0]
3433
Dot {
3534
name Dot2
3635
xpos -226
@@ -43,8 +42,8 @@ set N6f4c5800 [stack 0]
4342
xpos -260
4443
ypos -130
4544
}
46-
set N6f4c5000 [stack 0]
47-
push $N6f4c5800
45+
set N3ebe4c00 [stack 0]
46+
push $N3ebe5400
4847
Merge2 {
4948
inputs 2
5049
operation minus
@@ -56,13 +55,13 @@ push $N6f4c5800
5655
xpos -40
5756
ypos -130
5857
}
59-
push $N6f4c5000
58+
push $N3ebe4c00
6059
Dot {
6160
name Dot1
6261
xpos -226
6362
ypos -78
6463
}
65-
set N6f4c4800 [stack 0]
64+
set N3ebe4400 [stack 0]
6665
Expression {
6766
expr0 abs(r)
6867
expr1 abs(g)
@@ -71,7 +70,7 @@ set N6f4c4800 [stack 0]
7170
xpos -167
7271
ypos -81
7372
}
74-
set N6f4c4400 [stack 0]
73+
set N3ebe4000 [stack 0]
7574
Merge2 {
7675
inputs 2
7776
operation divide
@@ -83,7 +82,7 @@ set N6f4c4400 [stack 0]
8382
xpos -40
8483
ypos -82
8584
}
86-
set N6f4c4000 [stack 0]
85+
set N5e5b3c00 [stack 0]
8786
Expression {
8887
expr0 "2 * x / (width - 1)"
8988
expr1 "2 * x / (width - 1)"
@@ -109,12 +108,6 @@ set N6f4c4000 [stack 0]
109108
addUserKnob {7 yellow}
110109
yellow {{parent.compress.yellow}}
111110
addUserKnob {26 ""}
112-
addUserKnob {7 lim_x R -5 2}
113-
lim_x 0.6439501953
114-
addUserKnob {7 lim_y R -5 2}
115-
lim_y 0.8228656006
116-
addUserKnob {7 lim_z R -5 2}
117-
lim_z 0.7155163574
118111
addUserKnob {26 ""}
119112
addUserKnob {6 invert +STARTLINE}
120113
invert {{parent.direction}}
@@ -130,7 +123,7 @@ set N6f4c4000 [stack 0]
130123
xpos -6
131124
ypos -30
132125
}
133-
set N6f317400 [stack 0]
126+
set N5e5b3000 [stack 0]
134127
Dot {
135128
name Dot1
136129
xpos 434
@@ -156,7 +149,7 @@ set N6f317400 [stack 0]
156149
addUserKnob {7 p R 1 5}
157150
p {{parent.power}}
158151
}
159-
push $N6f317400
152+
push $N5e5b3000
160153
Dot {
161154
name Dot6
162155
xpos -446
@@ -204,22 +197,21 @@ push $N6f317400
204197
xpos 180
205198
ypos 185
206199
}
207-
push $N6f4c4800
200+
push $N3ebe4400
208201
Dot {
209202
name Dot3
210203
xpos -226
211204
ypos 234
212205
}
213-
push $N6f4c4400
206+
push $N3ebe4000
214207
Dot {
215208
name Dot7
216209
xpos -133
217210
ypos 185
218211
}
219-
push $N6f4c4000
212+
push $N5e5b3c00
220213
Group {
221214
name compress
222-
selected true
223215
xpos -40
224216
ypos 62
225217
addUserKnob {20 compress}
@@ -235,12 +227,6 @@ push $N6f4c4000
235227
addUserKnob {7 yellow}
236228
yellow 0.12
237229
addUserKnob {26 ""}
238-
addUserKnob {7 lim_x R -5 2}
239-
lim_x 0.6439501953
240-
addUserKnob {7 lim_y R -5 2}
241-
lim_y 0.8228656006
242-
addUserKnob {7 lim_z R -5 2}
243-
lim_z 0.7155163574
244230
addUserKnob {26 ""}
245231
addUserKnob {6 invert +STARTLINE}
246232
invert {{parent.direction}}
@@ -256,7 +242,7 @@ push $N6f4c4000
256242
xpos -6
257243
ypos -30
258244
}
259-
set N704a4c00 [stack 0]
245+
set N5e0fc800 [stack 0]
260246
Dot {
261247
name Dot1
262248
xpos 434
@@ -282,7 +268,7 @@ set N704a4c00 [stack 0]
282268
addUserKnob {7 p R 1 5}
283269
p {{parent.power}}
284270
}
285-
push $N704a4c00
271+
push $N5e0fc800
286272
Dot {
287273
name Dot6
288274
xpos -446
@@ -343,10 +329,9 @@ push $N704a4c00
343329
xpos -40
344330
ypos 230
345331
}
346-
set N702b7000 [stack 0]
332+
set N5d480c00 [stack 0]
347333
Merge2 {
348334
inputs 2
349-
operation screen
350335
name Merge7
351336
xpos 180
352337
ypos 231
@@ -356,7 +341,7 @@ set N702b7000 [stack 0]
356341
xpos 214
357342
ypos 268
358343
}
359-
push $N702b7000
344+
push $N5d480c00
360345
Switch {
361346
inputs 2
362347
which {{parent.overlay}}

0 commit comments

Comments
 (0)