-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPlotRGBCube.nk
More file actions
423 lines (423 loc) · 7.79 KB
/
PlotRGBCube.nk
File metadata and controls
423 lines (423 loc) · 7.79 KB
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
set cut_paste_input [stack 0]
push $cut_paste_input
Group {
name PlotRGBCube
addUserKnob {20 PlotRGBCube_tab l PlotRGBCube}
addUserKnob {6 plot_input l "plot input" t "plot input pixels" -STARTLINE}
plot_input true
addUserKnob {6 rgb_cube l "rgb cube" t "enable rgb cube" -STARTLINE}
rgb_cube true
addUserKnob {6 achromatic_up l "achromatic up" t "orient cube such that achromatic axis is up" -STARTLINE}
achromatic_up true
addUserKnob {7 exposure R -8 8}
addUserKnob {26 "" +STARTLINE}
addUserKnob {4 view M {top side perspective}}
view perspective
addUserKnob {22 minus_rot l - T "rot = nuke.thisNode()\['rotate']\nrot.setValue(rot.getValue()-30)" +STARTLINE}
addUserKnob {22 plus_rot l + -STARTLINE T "rot = nuke.thisNode()\['rotate']\nrot.setValue(rot.getValue()+30)"}
addUserKnob {7 x_rot l "persp xrot" t "if view is perspective: rotate x between 0 and -90" R -1 1}
x_rot 0.5
addUserKnob {7 rotate R 0 360}
rotate 180
addUserKnob {6 high_quality l "high quality" t "enable high quality rendering" +STARTLINE}
high_quality false
addUserKnob {7 point_detail l "point detail" t "point detail of the position to points "}
point_detail 1
addUserKnob {41 box_width l width/height T Reformat26.box_width}
addUserKnob {41 box_height l "" -STARTLINE T Reformat26.box_height}
addUserKnob {22 set_viewer_color l "set 3d view black" t "set 3d viewer to have a black background" T "prefs = nuke.toNode('preferences')\ncol = prefs\['viewer_bg_color_3D']\ncol.setValue(0)" +STARTLINE}
}
Axis2 {
inputs 0
display off
selectable false
translate {0 1 0}
rotate {{-parent.x_rot*90} {parent.rotate} 0}
name Axis1
xpos -470
ypos 270
}
Camera2 {
display off
selectable false
translate {0 0 3.5}
name PERSP
xpos -470
ypos 390
}
Axis2 {
inputs 0
display off
selectable false
translate {0 0.8660254038 0}
rotate {0 {parent.rotate} 0}
name Axis2
xpos -360
ypos 270
}
Camera2 {
display off
selectable false
translate {0 0 2}
projection_mode orthographic
focal 14
name ORTHO_SIDE
xpos -360
ypos 390
}
Camera2 {
inputs 0
display off
selectable false
translate {0 6 0}
rotate {-90 {parent.rotate} 0}
projection_mode orthographic
focal 14
name ORTHO_TOP
xpos -250
ypos 390
}
Switch {
inputs 3
which {{parent.view}}
name SwitchView
xpos -260
ypos 501
}
Dot {
name Dot1
note_font "Helvetica Bold"
note_font_size 24
note_font_color 0xff
xpos -226
ypos 534
}
Dot {
name Dot4
note_font "Helvetica Bold"
note_font_size 24
note_font_color 0xff
xpos -6
ypos 534
}
set Na0ea9e20 [stack 0]
Input {
inputs 0
name Input
xpos -150
ypos 50
}
Multiply {
channels rgb
value {{pow(2,e)} {pow(2,e)} {pow(2,e)} 1}
name Exposure
xpos -150
ypos 140
addUserKnob {20 User}
addUserKnob {7 e R -8 8}
e {{parent.exposure}}
}
PositionToPoints2 {
display textured
selectable false
render_mode textured
cast_shadow false
receive_shadow false
P_channel rgb
detail {{parent.point_detail}}
pointSize 1
name PositionToPoints7
xpos -150
ypos 200
disable {{!parent.plot_input}}
}
Dot {
name Dot2
note_font "Helvetica Bold"
note_font_size 24
note_font_color 0xff
xpos -116
ypos 294
}
Group {
inputs 0
name RGBCubeAlt2
xpos 70
ypos 141
disable {{!parent.rgb_cube}}
addUserKnob {20 User}
addUserKnob {6 top_half l "top half" +STARTLINE}
top_half true
addUserKnob {6 posterize -STARTLINE}
posterize true
}
Group {
inputs 0
name HueSweep_4
xpos 1170
ypos 657
hide_input true
postage_stamp true
addUserKnob {20 User}
addUserKnob {6 white +STARTLINE}
addUserKnob {6 black +STARTLINE}
black true
}
Constant {
inputs 0
format "256 256 0 0 256 256 1 square_256"
name Constant15
xpos 1160
ypos 651
postage_stamp false
}
set Nf3abd20 [stack 0]
Expression {
expr1 1-x/width
expr2 x/width
name Expression28
label "green/red\n"
xpos 1280
ypos 712
postage_stamp true
}
push $Nf3abd20
Expression {
expr0 1-x/width
expr1 x/width
name Expression19
label "green/red\n"
xpos 1160
ypos 712
postage_stamp true
}
push $Nf3abd20
Expression {
expr0 x/width
expr2 1-x/width
name Expression21
label "green/red\n"
xpos 1040
ypos 712
postage_stamp true
}
ContactSheet {
inputs 3
width {{width*columns}}
height {{height/pixel_aspect*rows}}
rows 1
columns 3
roworder TopBottom
name ContactSheet3
xpos 1160
ypos 831
}
Shuffle {
alpha white
name Shuffle1
xpos 1160
ypos 861
}
Dot {
name Dot1
note_font "Helvetica Bold"
note_font_size 24
note_font_color 0xff
xpos 1194
ypos 894
}
set Nd773da90 [stack 0]
Expression {
expr3 (y/height-0.5)*2
name Expression2
xpos 1040
ypos 951
}
push $Nd773da90
Expression {
expr3 1-y/(height/2)
name Expression1
xpos 1040
ypos 891
}
push $Nd773da90
Fill {
inputs 1+1
color {0 0 0 1}
name Fill2
xpos 1160
ypos 937
disable {{!parent.black}}
}
Fill {
inputs 1+1
color {1 1 1 1}
name Fill1
xpos 1160
ypos 981
disable {{!parent.white}}
}
Output {
name Output1
xpos 1160
ypos 1070
}
end_group
Group {
name Exposure4
tile_color 0x79a9ffff
xpos 1170
ypos 770
addUserKnob {20 Exposure}
addUserKnob {18 exposure R -8 8}
exposure 4
addUserKnob {6 exposure_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
}
Input {
inputs 0
name Inputmask
xpos 120
ypos -9
number 1
}
Input {
inputs 0
name Input
xpos -40
ypos -81
}
Multiply {
inputs 1+1
channels rgb
value {{"pow(2, parent.exposure)"} {"pow(2, parent.exposure)"} {"pow(2, parent.exposure)"} {"pow(2, parent.exposure)"}}
name _EXPOSURE_
xpos -40
ypos -9
}
Output {
name Output1
xpos -40
ypos 63
}
end_group
Clamp {
channels rgba
name Clamp18
xpos 1170
ypos 801
}
Posterize {
channels rgba
Colors 64
name Posterize1
xpos 1170
ypos 831
disable {{!parent.posterize}}
}
Dot {
name Dot1
note_font "Helvetica Bold"
note_font_size 24
note_font_color 0xff
xpos 1204
ypos 924
}
set Na0ec3b20 [stack 0]
Expression {
expr0 1-r
expr1 1-g
expr2 1-b
channel3 none
name Complement1
xpos 1060
ypos 921
}
push $Na0ec3b20
ContactSheet {
inputs 2
width {{width*columns}}
height {{height/pixel_aspect*rows}}
rows 2
columns 1
roworder TopBottom
name ContactSheet1
xpos 1170
ypos 951
disable {{!parent.top_half}}
}
Output {
name Output
xpos 1170
ypos 1010
}
end_group
PositionToPoints2 {
display textured
selectable false
render_mode textured
cast_shadow false
receive_shadow false
P_channel rgb
detail 1
pointSize 1
name PositionToPoints8
xpos 70
ypos 200
disable {{!parent.rgb_cube}}
}
Scene {
inputs 2
name Scene3
xpos 80
ypos 270
disable {{!parent.plot_input}}
}
TransformGeo {
rotate {{"-degrees(atan(sqrt(1/2))) "} 0 45}
name OrientAchromatic
xpos 70
ypos 381
disable {{!parent.achromatic_up}}
}
push $Na0ea9e20
Scene {
inputs 2
name Scene4
xpos 80
ypos 510
}
Constant {
inputs 0
format "256 256 0 0 256 256 1 square_256"
name Constant9
xpos 180
ypos 621
postage_stamp false
}
Reformat {
type "to box"
box_width 2048
box_height {{box_width}}
box_fixed true
black_outside true
name Reformat26
xpos 180
ypos 651
}
ScanlineRender {
inputs 3
conservative_shader_sampling false
samples {{parent.high_quality?6:1}}
shutteroffset centred
stochastic_samples {{parent.high_quality?12:1}}
motion_vectors_type distance
name ScanlineRender
xpos 70
ypos 651
}
Output {
name Output
xpos 70
ypos 920
}
end_group