forked from openNuke/toolset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keychew.nk
234 lines (233 loc) · 4.01 KB
/
keychew.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
set cut_paste_input [stack 0]
version 7.0 v8
push $cut_paste_input
Group {
name Keychew
help "Cheaply dilates and erodes a matte"
selected true
xpos -995
ypos 3836
addUserKnob {20 User l "Key Chew"}
addUserKnob {26 line l "" +STARTLINE}
addUserKnob {41 from0 l channel T Copy1.from0}
addUserKnob {41 chew T MASTER.chew}
addUserKnob {41 dilate -STARTLINE T MASTER.dilate}
addUserKnob {41 chewContrast T MASTER.chewContrast}
addUserKnob {41 blur T MASTER.blur}
addUserKnob {26 ""}
addUserKnob {41 edgeMatte l "edge matte" T SwitchEdge.edgeMatte}
addUserKnob {41 outside T ColorLookupEdge1.outside}
addUserKnob {41 inside -STARTLINE T ColorLookupEdge1.inside}
addUserKnob {20 Info}
addUserKnob {26 title l +++ T " OPEN NUKE GITHUB TOOLSET +++"}
addUserKnob {22 documentation l " Documentation / Feedback " T "import webbrowser\nwebbrowser.open(\"http://opennuke.github.io/keychew_nk//\")" +STARTLINE}
addUserKnob {26 ""}
addUserKnob {26 version l version: T "0.1 Stable"}
addUserKnob {26 created l created: T "1/1/2015 by <a href=\\'http://movingimagearts.com'> Rafal Kaniewski</a>"}
addUserKnob {26 modified l "modified: " T " "}
addUserKnob {26 source l source: T " "}
addUserKnob {26 licence l licence: T "<a href=\"https://github.com/openNuke/toolset/blob/master/LICENCE\">READ ME</a>"}
}
Input {
inputs 0
name Input1
xpos -165
ypos -352
}
set N382e46f0 [stack 0]
Dot {
name Dot2
xpos -264
ypos -354
}
Dot {
name Dot1
xpos -264
ypos -275
}
set N381ae2b0 [stack 0]
push $N382e46f0
Copy {
inputs 2
from0 {{{Copy1.from0}}}
to0 rgba.alpha
bbox B
name Copy2
selected true
xpos -165
ypos -279
disable {{"\[python nuke.thisGroup().inputs()==0]"}}
}
set N3818e8d0 [stack 0]
Blur {
channels alpha
size {{abs(MASTER.chewExp) x1004 8}}
filter quadratic
name Blur1
xpos -36
ypos -290
addUserKnob {20 User}
addUserKnob {7 Chew R -300 300}
Chew 106
}
Dot {
name Dot6
xpos -7
ypos -202
}
set Nfac963d0 [stack 0]
Dot {
name Dot8
xpos -127
ypos -198
}
ColorLookup {
channels alpha
lut {master {}
red {}
green {}
blue {}
alpha {curve 0 x0.400000006 1 x0.6000000238 1 x1 0}}
name ColorLookupEdge1
xpos -155
ypos -129
addUserKnob {20 User}
addUserKnob {7 outsideTCL}
outsideTCL {{"\[animation lut.alpha x 1 \[value outside]]+0"}}
addUserKnob {7 outside}
outside 0.4
addUserKnob {7 inside}
inside 0.6
addUserKnob {7 insideTCL}
insideTCL {{"\[animation lut.alpha x 2 \[value inside]]+0"}}
}
push $Nfac963d0
Switch {
inputs 2
which {{edgeMatte}}
name SwitchEdge
xpos -36
ypos -123
addUserKnob {20 User}
addUserKnob {6 edgeMatte l "edge matte" +STARTLINE}
}
Dot {
name Dot3
xpos -8
ypos -64
}
set N381bd3c0 [stack 0]
Dot {
name Dot7
xpos 185
ypos 9
}
push $N381bd3c0
Dot {
name Dot4
xpos 39
ypos 13
}
Invert {
channels alpha
name Invert1
xpos 11
ypos 171
}
Switch {
inputs 2
which {{MASTER.dilate}}
name Switch1
xpos 157
ypos 177
}
Grade {
channels {-rgba.red -rgba.green rgba.blue rgba.alpha}
white {{abs(MASTER.chewExp)+1 x1004 1.32}}
gamma {{1/abs(MASTER.chewExp/(1-MASTER.chewContrast+10)+1)}}
black_clamp false
name Grade3
xpos 157
ypos 243
}
set N31ed3c30 [stack 0]
push $N381bd3c0
Dot {
name Dot5
xpos -20
ypos 360
}
push $N31ed3c30
Merge2 {
inputs 2
operation minus
Achannels alpha
Bchannels alpha
output alpha
name Min
xpos 139
ypos 356
}
set N382e9000 [stack 0]
Switch {
inputs 2
which {{MASTER.dilate}}
name Switch3
xpos 147
ypos 463
}
Clamp {
channels alpha
name Clamp5
xpos 115
ypos 595
}
Blur {
channels rgba
size {{MASTER.blur} {MASTER.blur}}
filter box
crop false
name Blur11
xpos 115
ypos 644
}
push $N381ae2b0
Copy {
inputs 2
from0 rgba.alpha
to0 rgba.alpha
name Copy1
xpos -332
ypos 638
}
Output {
name Output1
xpos -332
ypos 841
}
NoOp {
inputs 0
name MASTER
xpos 684
ypos -384
addUserKnob {20 User}
addUserKnob {6 dilate -STARTLINE}
addUserKnob {7 chewContrast R -10 10}
addUserKnob {14 chew R 0 100}
addUserKnob {14 chewExp R 0 100}
chewExp {{dilate==1?chew:1-chew}}
addUserKnob {14 blur R 0 100}
addUserKnob {6 edgeMatte +STARTLINE}
addUserKnob {7 outside}
addUserKnob {7 inside}
}
push $N382e9000
push $N3818e8d0
Viewer {
inputs 2
input_process false
name Viewer1
xpos 213
ypos -298
}
end_group