-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrm_healPatch.nk
342 lines (342 loc) · 5.97 KB
/
rm_healPatch.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
set cut_paste_input [stack 0]
version 8.0 v5
push $cut_paste_input
Group {
name rm_healPatch3
selected true
xpos 6660
ypos 465
addUserKnob {20 User}
addUserKnob {26 Rectangle l "Patch coords:"}
addUserKnob {12 LL l "Left Lower"}
LL {2455.199951 571}
addUserKnob {12 RL l "Right Lower"}
RL {2501.800049 570}
addUserKnob {12 LU l "Left Upper"}
LU {2454.399902 623}
addUserKnob {12 RU l "Right Upper"}
RU {2503.399902 622}
addUserKnob {26 ""}
addUserKnob {7 edgeblur l "Edge Softness" R 0 20}
addUserKnob {26 Blur l Blur:}
addUserKnob {7 lblur l Left R 0 50}
addUserKnob {7 rblur l Right R 0 50}
addUserKnob {7 ublur l Upper R 0 50}
addUserKnob {7 lowblur l Lower R 0 50}
addUserKnob {26 enable l Enable:}
addUserKnob {6 enableUpper l Upper +STARTLINE}
enableUpper true
addUserKnob {6 enableLeft l Left +STARTLINE}
enableLeft true
addUserKnob {6 enableRight l Right -STARTLINE}
enableRight true
addUserKnob {6 enableLower l Lower +STARTLINE}
enableLower true
addUserKnob {26 ""}
addUserKnob {7 hvratio l "H-V Mix" t "Mix ratio of Horizontal and Vertical Interpolation\n0 - only horizontal\n1 - only vertical\n0.5 - average"}
hvratio 1
addUserKnob {41 operation l "H-V Operation" T Merge7.operation}
}
Constant {
inputs 0
channels rgb
name Constant1
xpos 409
ypos -98
}
set N194bfa10 [stack 0]
Dot {
name Dot6
xpos 314
ypos -71
}
Ramp {
p0 {{parent.CornerPin2D1.to2.x} {parent.CornerPin2D1.to1.y}}
p1 {{parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to1.y}}
name Ramp1
xpos -1
ypos -74
}
Dot {
name Dot8
xpos 32
ypos -6
}
Input {
inputs 0
name Input1
xpos 407
ypos -255
}
CornerPin2D {
to1 {{min(from1,from2,from3,from4)} {min(from1,from2,from3,from4)}}
to2 {{max(from1,from2,from3,from4)} {min(from1,from2,from3,from4)}}
to3 {{max(from1,from2,from3,from4)} {max(from1,from2,from3,from4)}}
to4 {{min(from1,from2,from3,from4)} {max(from1,from2,from3,from4)}}
invert false
from1 {{parent.LL} {parent.LL}}
from2 {{parent.RL} {parent.RL}}
from3 {{parent.RU} {parent.RU}}
from4 {{parent.LU} {parent.LU}}
name CornerPin2D1
xpos 407
ypos -179
}
set N194dafb0 [stack 0]
Dot {
name Dot2
xpos 218
ypos -176
}
set N194ea200 [stack 0]
Dot {
name Dot1
xpos -123
ypos -176
}
Blur {
channels rgb
size {0 {parent.lblur}}
name Blur1
xpos -156
ypos -120
}
Crop {
box {{parent.CornerPin2D1.to1.x-1} {parent.CornerPin2D1.to1.y-1} {parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to3.y+1}}
crop false
name Crop2
xpos -156
ypos -74
}
push $N194bfa10
Dot {
name Dot7
xpos 314
ypos -38
}
Merge2 {
inputs 2
bbox B
name Merge2
xpos -156
ypos -42
}
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.alpha
name Copy1
xpos -156
ypos 111
disable {{!parent.enableRight}}
}
push $N194bfa10
push $N194ea200
Blur {
channels rgb
size {0 {parent.rblur}}
name Blur2
xpos 184
ypos -138
}
Crop {
box {{parent.CornerPin2D1.to2.x} {parent.CornerPin2D1.to1.y-1} {parent.CornerPin2D1.to2.x+1} {parent.CornerPin2D1.to3.y+1}}
crop false
name Crop3
xpos 184
ypos -106
}
push $N194bfa10
Dot {
name Dot5
xpos 442
ypos 26
}
set N1d3bb010 [stack 0]
Merge2 {
inputs 2
bbox B
name Merge3
xpos 184
ypos -10
}
Switch {
inputs 2
which {{!parent.enableRight}}
name Enable_Right
xpos 313
ypos 86
}
Merge2 {
inputs 2
operation matte
bbox B
name Merge1
xpos 184
ypos 118
disable {{!parent.enableLeft}}
}
Shuffle {
alpha white
name Shuffle1
xpos 184
ypos 150
}
Dot {
name Dot12
xpos 218
ypos 186
}
push $N194bfa10
Ramp {
p0 {{parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to1.y}}
p1 {{parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to3.y}}
name Ramp2
xpos 720
ypos -74
}
Dot {
name Dot10
xpos 753
ypos 26
}
push $N194dafb0
Dot {
name Dot3
xpos 651
ypos -176
}
set N1d3f99b0 [stack 0]
Blur {
channels rgb
size {{parent.ublur} 0}
name Blur3
xpos 618
ypos -138
}
Crop {
box {{parent.CornerPin2D1.to1.x-1} {parent.CornerPin2D1.to3.y} {parent.CornerPin2D1.to2.x+1} {parent.CornerPin2D1.to3.y+1}}
crop false
name Crop4
xpos 618
ypos -106
}
push $N1d3bb010
Merge2 {
inputs 2
bbox B
name Merge4
xpos 618
ypos 39
}
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.alpha
name Copy2
xpos 618
ypos 95
disable {{!parent.enableLower}}
}
push $N194bfa10
Dot {
name Dot9
xpos 538
ypos -39
}
set N208289a0 [stack 0]
Dot {
name Dot13
xpos 538
ypos 8
}
push $N1d3f99b0
Dot {
name Dot4
xpos 858
ypos -176
}
Blur {
channels rgb
size {{parent.lowblur} 0}
name Blur4
xpos 824
ypos -138
}
Crop {
box {{parent.CornerPin2D1.to1.x-1} {parent.CornerPin2D1.to1.y-1} {parent.CornerPin2D1.to2.x+1} {parent.CornerPin2D1.to1.y}}
crop false
name Crop5
xpos 825
ypos -106
}
push $N208289a0
Merge2 {
inputs 2
bbox B
name Merge5
xpos 825
ypos -42
}
Switch {
inputs 2
which {{!parent.enableLower}}
name Enable_
xpos 824
ypos 5
}
Merge2 {
inputs 2
operation matte
bbox B
name Merge6
xpos 824
ypos 102
disable {{!parent.enableUpper}}
}
Shuffle {
alpha white
name Shuffle2
xpos 824
ypos 150
}
Dot {
name Dot11
xpos 858
ypos 186
}
Merge2 {
inputs 2
bbox B
mix {{parent.hvratio}}
name Merge7
xpos 432
ypos 182
}
Crop {
box {{parent.CornerPin2D1.to1.x} {parent.CornerPin2D1.to1.y} {parent.CornerPin2D1.to3.x} {parent.CornerPin2D1.to3.y}}
softness {{parent.edgeblur}}
name Crop1
xpos 415
ypos 287
}
CornerPin2D {
to1 {{min(from1,from2,from3,from4)} {min(from1,from2,from3,from4)}}
to2 {{max(from1,from2,from3,from4)} {min(from1,from2,from3,from4)}}
to3 {{max(from1,from2,from3,from4)} {max(from1,from2,from3,from4)}}
to4 {{min(from1,from2,from3,from4)} {max(from1,from2,from3,from4)}}
invert true
from1 {{parent.LL} {parent.LL}}
from2 {{parent.RL} {parent.RL}}
from3 {{parent.RU} {parent.RU}}
from4 {{parent.LU} {parent.LU}}
name CornerPin2D3
xpos 415
ypos 319
}
Output {
name Output1
xpos 415
ypos 374
}
end_group