-
Notifications
You must be signed in to change notification settings - Fork 21
/
CalibrateMacbeth.nk
1625 lines (1625 loc) · 49.5 KB
/
CalibrateMacbeth.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
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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
set cut_paste_input [stack 0]
version 14.0 v2
push $cut_paste_input
Group {
name CalibrateMacbeth
tile_color 0x87aee7ff
selected true
xpos 197
ypos -199
addUserKnob {20 CalibrateMacbeth}
addUserKnob {26 macbeth_position_label l "@b;Macbeth Position" T ""}
addUserKnob {7 sample_size l "sample size" R 5 100}
sample_size 50
addUserKnob {12 TL}
TL {820 1070}
addUserKnob {12 TR -STARTLINE}
TR {1155 1105}
addUserKnob {12 BL}
BL {828 756}
addUserKnob {12 BR -STARTLINE}
BR {1174 782}
addUserKnob {6 output_compare l "output in compare mode" t "inverts the cornerpin for a good view of the macbeth chart for comparing src and dst" +STARTLINE}
addUserKnob {6 disable_overlay l "disable overlay" t "Removes the destination colorchecker values overlayed over the source." +STARTLINE}
addUserKnob {26 ""}
addUserKnob {41 gamut T MacbethColorChecker.gamut}
addUserKnob {6 chroma_only l "calibrate chromaticities only" t "Do not change the brightness of the input image after calibration." +STARTLINE}
chroma_only true
addUserKnob {22 calculate l Calculate T "from __future__ import print_function\nimport nuke\n\ndef colorsample(node, pos, size):\n # sample rgb pixel value\n # :param: node - node object to sample\n # :param: pos - list containing x and y position as float values\n # :param: size - box size to average in sample\n return \[node.sample(chan, pos\[0], pos\[1], size, size) for chan in \['red', 'green', 'blue']]\n\n\ndef calc_mtx():\n # calculate colormatrix to match src macbeth chart to dst macbeth chart\n node = nuke.thisNode()\n\n # make sure numpy is importable\n if node\['specify_python_path'].getValue():\n import sys\n sys.path.insert(0, node\['python_path'].getValue())\n try:\n import numpy as np\n except ImportError as e:\n nuke.message('numpy required. make sure it is installed correctly and importable.\\n\{0\}'.format(e))\n return\n\n size = node\['sample_size'].getValue()\n chroma_only = node\['chroma_only'].getValue()\n \n node.begin()\n src = nuke.toNode('Normalize')\n dst = nuke.toNode('macbeth_points')\n norm_node = nuke.toNode('Normalize')\n\n node\['reset'].execute()\n\n # If chroma_only, normalize colorchecker to dst grey before sampling\n if chroma_only:\n src_grey = colorsample(src, dst\['p44'].getValue(), size)\n dst_grey = colorsample(dst, dst\['p44'].getValue(), size)\n \n # with rec709 luminance weighting\n src_lum = (src_grey\[0]*0.2126 + src_grey\[1]*0.7152 + src_grey\[2]*0.0722)\n dst_lum = (dst_grey\[0]*0.2126 + dst_grey\[1]*0.7152 + dst_grey\[2]*0.0722)\n norm_node\['src'].setValue(src_lum)\n norm_node\['dst'].setValue(dst_lum)\n\n print('source grey: \{0\} | \{1\}\\ndst grey: \{2\} | lum: \{3\}'.format(src_grey, src_lum, dst_grey, dst_lum))\n \n src_patches = list()\n dst_patches = list()\n points = \['p11', 'p12', 'p13', 'p14', 'p15', 'p16', 'p21', 'p22', 'p23', 'p24', 'p25', \n 'p26', 'p31', 'p32', 'p33', 'p34', 'p35', 'p36', 'p41', 'p42', 'p43', 'p44', 'p45', 'p46']\n\n for point in points:\n src_value = colorsample(src, dst\[point].getValue(), size)\n dst_value = colorsample(dst, dst\[point].getValue(), size)\n\n src_patches.append(src_value)\n dst_patches.append(dst_value)\n\n print('source: \{0\}'.format(src_value))\n print('destination: \{0\}'.format(dst_value))\n\n # Calculate multivariate Rinear Regression to fit source matrix to target matrix\n # https://en.wikipedia.org/wiki/General_linear_model\n # https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.lstsq.html\n # \n # https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/notebooks/mmColorTarget_dependencies.ipynb\n # Source chromaticities are based on XRite ColorChecker 2005 values as described here: \n # https://github.com/colour-science/colour/blob/cdbffd063b0c44bb32d752b01647137871434851/colour/characterisation/dataset/colour_checkers/chromaticity_coordinates.py#L114-L114\n # http://www.babelcolor.com/colorchecker.htm\n # http://www.babelcolor.com/colorchecker-2.htm#CCP2_beforeVSafter\n # https://github.com/colour-science/colour-nuke/blob/master/colour_nuke/scripts/colour_rendition_chart.nk\n\n np_matrix = np.transpose(np.linalg.lstsq(np.array(src_patches), np.array(dst_patches))\[0])\n matrix = np.ravel(np_matrix).tolist()\n node\['matrix'].setValue(matrix)\n nuke.root().begin()\n\nif __name__=='__main__':\n calc_mtx()" +STARTLINE}
addUserKnob {26 ""}
addUserKnob {26 output_matrix_label l "@b;Output Matrix" T ""}
addUserKnob {41 matrix T ColorMatrix.matrix}
addUserKnob {6 bypass_mtx l "bypass matrix" t "disable the matrix - for comparing before/after" +STARTLINE}
addUserKnob {22 reset l Reset -STARTLINE T "n = nuke.thisNode()\nn\['matrix'].setValue(\[1,0,0,0,1,0,0,0,1])\nn.begin()\nnorm = nuke.toNode('Normalize')\nnorm\['src'].setValue(0.18)\nnorm\['dst'].setValue(0.18)"}
addUserKnob {22 create_mtx l "Create MTX" t "Create a ColorMatrix node." T "import os\nnode = nuke.thisNode()\nnode.begin()\nnorm = nuke.toNode('Normalize')\n\nnuke.root().begin()\n_ = \[n.setSelected(False) for n in nuke.allNodes(recurseGroups=True)]\n\ncolormatrix = nuke.createNode('ColorMatrix')\ncolormatrix.setXYpos(node.xpos()-120, node.ypos())\ncolormatrix\['matrix'].setValue(node\['matrix'].getValue())\ntopnode = nuke.toNode(nuke.tcl('full_name \[topnode \{0\}]'.format(node.fullName())))\nif 'file' in topnode.knobs():\n\tfilename = os.path.basename(topnode\['file'].getValue())\nelse:\n\tfilename = topnode.name()\nif node\['chroma_only'].getValue():\n colormatrix\['label'].setValue('\{0\} \\ncalibrate: \{1\}'.format(filename, node\['colorspace'].value()))\n # Create mult as well for optional exposure adjustment\n exp = nuke.createNode('Multiply')\n exp\['channels'].setValue('rgb')\n exp.setXYpos(colormatrix.xpos(), colormatrix.ypos() + 60)\n exp\['value'].setValue(norm\['value'].getValue())\n colormatrix.setSelected(True)\nelse:\n colormatrix\['label'].setValue('\{0\} \\ncalibrate w/ exposure: \{1\}'.format(filename, node\['colorspace'].value()))" +STARTLINE}
addUserKnob {22 set_selected l "Set Selected" t "Set matrix knob on selected node." -STARTLINE T "node = nuke.thisNode()\nnuke.root().begin()\n\ncolormatrix = nuke.selectedNode()\nif 'matrix' in colormatrix.knobs():\n colormatrix\['matrix'].setValue(node\['matrix'].getValue())\n"}
addUserKnob {20 info l Info}
addUserKnob {26 info_label l "" +STARTLINE T "<b>About</b><br/>\nCalibrate an image containing a macbeth colorchecker chart<br/>\nto match the gamut of the given colorspace.<br/>\nRequires the numpy python module. Make sure it is importable<br/>\nin nuke. You can enter a custom python path to search for numpy.<br/>\nThis is the directory to the site-packages folder that contains the numpy module.<br/><br/>\nNote that this technique is not a magic solution. <br/>\nIn order for the calibration to be accurate, the illuminant in the scene<br/>\nneeds to be CIE Illuminant D65. The more the spectral power distribution <br/>\nof the light varies from this, the more error will be in the result.\n<br/><br/><b>Usage</b><br/>\n- Align cornerpin to match patches to macbeth chart <br/>\n- Set sample size to get a good sample on source macbeth chart. <br/>\n- Choose target colorspace. <br/>\n- Disable calibrate chromaticities only if you want to adjust exposure as well.<br/>\n- Click calculate<br/>\n- Evaluate results: Output in compare mode to get a better view.<br/>\n- Toggle bypass matrix to compare before/after.<br/>\n- Click Create MTX to create a new colormatrix node<br/>\n- Or click Set Selected to set an existing colormatrix node.<br/>\n\n<br/><br/><b>Information</b><br/>\nBased on Marco Meyer's mmColorTarget tool.<br/>\nwww.marcomeyer-vfx.de<br/>\n<br/>\nRebuild and simplify. <br/>Calibrate to known gamuts only. <br/>\nAdd option to not change exposure.<br/>\nCreated by Jed Smith - <a href=\"gist.github.com/jedypod\">gist.github.com/jedypod</a>"}
addUserKnob {26 ""}
addUserKnob {6 specify_python_path l "" t "search specified python path for numpy module" -STARTLINE}
specify_python_path true
addUserKnob {1 python_path l "python path" t "enter the directory of the site-packages folder that contains the numpy module" -STARTLINE}
python_path /opt/sidefx/hfs19.0.455/python/lib/python3.7/site-packages
}
Constant {
inputs 0
format "512 512 0 0 512 512 1 square_512"
name Constant1
xpos -810
ypos -1186
postage_stamp false
}
Reformat {
type "to box"
box_width {{parent.MacbethColorChecker.patch_resolution}}
box_height {{parent.MacbethColorChecker.patch_resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat2
xpos -810
ypos -1164
}
Radial {
replace true
area {{center.x-(box_size.w/2)} {center.y-(box_size.h/2*input.pixel_aspect)} {center.x+(box_size.w/2)} {center.y+(box_size.h/2*input.pixel_aspect)}}
softness 0
name RadialSize
xpos -810
ypos -1138
addUserKnob {20 Size}
addUserKnob {12 center}
center {{width/2} {height/2}}
addUserKnob {14 box_size R 0 100}
box_size {{sample_size}}
}
set N147ca240 [stack 0]
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
push $N147ca240
ContactSheet {
inputs 24
width {{rint(width*6+gap*7)}}
height {{rint(height*4+gap*5)}}
rows 4
columns 6
startframe 1
endframe 1
name ContactSheet1
xpos -810
ypos -1112
}
Dot {
name Dot7
label " "
note_font "Helvetica Bold"
note_font_size 24
note_font_color 0xa5a5a501
xpos -776
ypos -1086
}
Group {
inputs 0
name MacbethColorChecker
tile_color 0xffbf00ff
label "\[value gamut]"
xpos -590
ypos -1191
postage_stamp true
addUserKnob {20 MacbethColorChecker_tab l MacbethColorChecker}
addUserKnob {41 gamut T XYZD65ToGamut.gamut}
addUserKnob {3 patch_resolution l "patch resolution"}
patch_resolution 128
addUserKnob {7 gap R 10 50}
gap 10
}
Group {
inputs 0
name ColorChecker24_After_November_2014
xpos 1170
ypos -417
postage_stamp true
addUserKnob {20 colorchecker_tab l "ColorChecker24 - After November 2014"}
addUserKnob {3 patch_resolution}
patch_resolution {{parent.patch_resolution}}
}
Group {
inputs 0
name bluish_green
xpos 622
ypos -321
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.30451114 0.4143554688 0.344352688 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "bluish green"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 6
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name blue_flower
xpos 512
ypos -321
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.2419823988 0.2287175998 0.3282104382 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "blue flower"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 5
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name foliage
xpos 402
ypos -321
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1114392339 0.1346792679 0.05239320311 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob foliage
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 4
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name blue_sky
xpos 292
ypos -321
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1652470004 0.1785519348 0.2546024121 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "blue sky"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 3
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name light_skin
xpos 180
ypos -321
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.3811104477 0.336202304 0.1852590702 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "light skin"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 2
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 63
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
xpos 262
ypos 135
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name dark_skin
xpos 70
ypos -321
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1136398927 0.09832436105 0.047793811 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "dark skin"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 1
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 290
ypos 63
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
xpos 290
ypos 158
}
Output {
name Output
xpos 290
ypos 230
}
end_group
Group {
inputs 0
name orange_yellow
xpos 622
ypos -201
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.4769723742 0.4293377578 0.06005041429 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "orange yellow"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 12
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name yellow_green
xpos 512
ypos -201
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.3427379502 0.4331759409 0.08330791241 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "yellow green"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 11
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name purple
xpos 401
ypos -201
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.08353888545 0.06276662955 0.1042075686 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob purple
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 10
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name moderate_red
xpos 290
ypos -201
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.2915036416 0.188999956 0.09736350318 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "moderate red"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 9
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name purplish_blue
xpos 180
ypos -201
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1200518326 0.1091090233 0.2874447494 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "purplish blue"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 8
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name orange
xpos 74
ypos -201
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.4073691399 0.3126416159 0.05130591012 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob orange
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 7
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name cyan
xpos 622
ypos -81
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1247966941 0.180609913 0.2913392383 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob cyan
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 18
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name magenta
xpos 512
ypos -81
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.299122798 0.1895114577 0.2213469194 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob magenta
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 17
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name yellow
xpos 399
ypos -81
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.5888922356 0.5992976803 0.07077420003 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob yellow
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 16
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
xpos 262
ypos 125
}
Output {
name Output
xpos 262
ypos 182
}
end_group
Group {
inputs 0
name red
xpos 292
ypos -81
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.2143728424 0.127800835 0.03868150726 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob red
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 15
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name green
xpos 182
ypos -81
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1413517689 0.2233437582 0.07287461742 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob green
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 14
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name blue
xpos 72
ypos -81
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.06809095613 0.05596214063 0.2077405936 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob blue
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 13
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name black_2
xpos 623
ypos 39
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.03042544265 0.03151319431 0.02656724434 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "black 2 (1.5 D)"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 24
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
xpos 262
ypos 125
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name neutral_3
xpos 512
ypos 39
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.08448968042 0.08817234828 0.07391630753 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "neutral 3.5 (1.05 D)"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 23
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name neutral_5
xpos 403
ypos 39
postage_stamp true
addUserKnob {20 sample_Tab l Sample}
addUserKnob {19 colour_RGBA_Color_Knob l Colour}
colour_RGBA_Color_Knob {0.1835495863 0.1906228754 0.1566717383 1}
addUserKnob {6 colour_RGBA_Color_Knob_panelDropped l "panel dropped state" -STARTLINE +HIDDEN}
addUserKnob {1 name_Text_Knob l Name}
name_Text_Knob "neutral 5 (.70 D)"
addUserKnob {1 index_Text_Knob l Index}
index_Text_Knob 22
addUserKnob {3 resolution}
resolution {{parent.patch_resolution}}
}
Constant {
inputs 0
color {{parent.colour_RGBA_Color_Knob.r} {parent.colour_RGBA_Color_Knob.g} {parent.colour_RGBA_Color_Knob.b} {parent.colour_RGBA_Color_Knob.a}}
format "512 512 0 0 512 512 1 square_512"
name Constant
xpos 262
ypos 53
}
Reformat {
type "to box"
box_width {{parent.resolution}}
box_height {{parent.resolution}}
box_fixed true
filter impulse
black_outside true
name Reformat1
}
Output {
name Output
xpos 262
ypos 173
}
end_group
Group {
inputs 0
name neutral_6
xpos 292
ypos 39
postage_stamp true
addUserKnob {20 sample_Tab l Sample}