Skip to content

Instantly share code, notes, and snippets.

@draconiansolo
Created February 11, 2015 11:58
Show Gist options
  • Save draconiansolo/ef5be07563fa30c69b22 to your computer and use it in GitHub Desktop.
Save draconiansolo/ef5be07563fa30c69b22 to your computer and use it in GitHub Desktop.
Despill snippet
set cut_paste_input [stack 0]
version 8.0 v6
push $cut_paste_input
Dot {
name Dot209
label FG
selected true
xpos 16313
ypos 12425
}
set Nf36f4070 [stack 0]
Keyer {
operation "luminance key"
range {0.1 0.25 1 1}
name Keyer14
selected true
xpos 15992
ypos 12704
}
Dot {
inputs 0
name Dot247
label BG
selected true
xpos 15881
ypos 12425
}
set N99f24a20 [stack 0]
push $N99f24a20
Clamp {
name Clamp6
selected true
xpos 15848
ypos 12512
}
set N7c84cb50 [stack 0]
Merge2 {
inputs 2
operation difference
name Merge84
selected true
xpos 15704
ypos 12614
}
Keyer {
operation "luminance key"
name Keyer15
selected true
xpos 15704
ypos 12656
}
Blur {
size 32
name Blur26
selected true
xpos 15704
ypos 12704
}
Dot {
name Dot248
selected true
xpos 15737
ypos 12953
}
Multiply {
inputs 1+1
value 0
invert_mask true
name Multiply23
selected true
xpos 15992
ypos 12944
}
push $Nf36f4070
OFXuk.co.thefoundry.keylight.keylight_v201 {
show "Final Result"
unPreMultiply false
screenColour {0.2141934484 0.4018619359 0.1007258072}
screenGain 1
screenBalance 0.5
alphaBias {0.5670775175 0.5458416939 0.4235585928}
despillBias {1.36453402 0.522834003 0.3063220084}
gangBiases true
preBlur 0
"Screen Matte" 0
screenClipMin 0
screenClipMax 1
screenClipRollback 0
screenGrowShrink 0
screenSoftness 0
screenDespotBlack 0
screenDespotWhite 0
screenReplaceMethod "Soft Colour"
screenReplaceColour {0.5 0.5 0.5}
Tuning 0
midPoint 0.5
lowGain 1
midGain 1
highGain 1
"Inside Mask" 0
sourceAlphaHandling Ignore
insideReplaceMethod "Soft Colour"
insideReplaceColour {0.5 0.5 0.5}
Crops 0
SourceXMethod Colour
SourceYMethod Colour
SourceEdgeColour 0
SourceCropL 0
SourceCropR 1
SourceCropB 0
SourceCropT 1
balanceSet false
insideComponent None
outsideComponent None
cacheBreaker true
name Keylight8
selected true
xpos 16376
ypos 12518
}
set N9b94dd30 [stack 0]
FilterErode {
size 16
filter gaussian
name FilterErode7
selected true
xpos 16376
ypos 12560
}
Blur {
size 16
name Blur27
selected true
xpos 16376
ypos 12608
}
push $N9b94dd30
push $Nf36f4070
OFXuk.co.thefoundry.keylight.keylight_v201 {
show "Final Result"
unPreMultiply false
screenColour {0.2141934484 0.4018619359 0.1007258072}
screenGain 1
screenBalance 0.5
alphaBias {0.5670775175 0.5458416939 0.4235585928}
despillBias {1.36453402 0.522834003 0.3063220084}
gangBiases false
preBlur 0
"Screen Matte" 0
screenClipMin 0
screenClipMax 1
screenClipRollback 0
screenGrowShrink 0
screenSoftness 0
screenDespotBlack 0
screenDespotWhite 0
screenReplaceMethod "Soft Colour"
screenReplaceColour {0.5 0.5 0.5}
Tuning 0
midPoint 0.5
lowGain 1
midGain 1
highGain 1
"Inside Mask" 0
sourceAlphaHandling Ignore
insideReplaceMethod "Soft Colour"
insideReplaceColour {0.5 0.5 0.5}
Crops 0
SourceXMethod Colour
SourceYMethod Colour
SourceEdgeColour 0
SourceCropL 0
SourceCropR 1
SourceCropB 0
SourceCropT 1
balanceSet false
insideComponent None
outsideComponent None
cacheBreaker true
name Keylight9
selected true
xpos 16280
ypos 12518
}
Keymix {
inputs 3
name Keymix11
selected true
xpos 16280
ypos 12608
}
Dot {
name Dot249
selected true
xpos 16313
ypos 12665
}
set Nd213f220 [stack 0]
Group {
name edgeDilate13
tile_color 0xe0671fff
selected true
xpos 16136
ypos 12710
addUserKnob {20 User}
addUserKnob {4 method l Method M {"Erode (Fast)" Blur Defocus "Erode (Filter)" "LevelSet (VectorBlur)" "LevelSet (iDistort)" GodRays "Displace (VectorBlur)" "Displace (iDistort)" ""}}
method "Erode (Filter)"
addUserKnob {26 prep}
addUserKnob {6 useThreshold l useAlphaThreshold +STARTLINE}
useThreshold true
addUserKnob {7 threshold R 0.001 0.999}
threshold 0.25
addUserKnob {7 erode R 0 5}
erode 4
addUserKnob {26 dilation}
addUserKnob {41 size T Blur17.size}
addUserKnob {41 filter T Blur17.filter}
addUserKnob {41 quality l "" -STARTLINE T Blur17.quality}
addUserKnob {6 dilationLayerOnly +STARTLINE}
addUserKnob {26 EdgeBlend}
addUserKnob {6 blendDetail l blendOuterDetail +STARTLINE}
addUserKnob {41 size_1 l size T EdgeBlur1.size}
addUserKnob {41 filter_1 l filter T EdgeBlur1.filter}
addUserKnob {41 quality_1 l "" -STARTLINE T EdgeBlur1.quality}
addUserKnob {6 sharpen l sharpenBlend +STARTLINE}
addUserKnob {7 sharpen_1 l sharpenBlend}
addUserKnob {20 Version}
addUserKnob {26 nodeInfo l "" +STARTLINE T "Edge Dilate v0.9\n\nAn edge fixing grimoire.\nWith great power comes great blahblahblah."}
addUserKnob {26 ""}
addUserKnob {26 VersionInfo l "" +STARTLINE T "Version Release: 0.9\n\nAuthors: Nico Coronado (nicoc)\n\nLast Edited By: Nico Coronado (nicoc)\n\nRelease Date: unreleased"}
}
Input {
inputs 0
name Input1
xpos -520
ypos -1162
}
Dot {
name Dot29
xpos -487
ypos -1063
}
Expression {
expr3 a?a:0
name Expression1
label "alpha fix"
xpos -520
ypos -1024
}
Dot {
name Dot22
xpos -487
ypos -823
}
set N7c4cc8a0 [stack 0]
Unpremult {
name Unpremult9
xpos -424
ypos -778
}
Dilate {
channels alpha
size {{-edgeDilate13.erode}}
name Dilate3
xpos -424
ypos -728
}
Grade {
channels alpha
blackpoint {{parent.threshold}}
whitepoint {{parent.threshold}}
white_clamp true
name Grade1
xpos -424
ypos -688
}
Premult {
name Premult1
xpos -424
ypos -634
}
push $N7c4cc8a0
Unpremult {
name Unpremult11
xpos -616
ypos -778
}
Dilate {
channels alpha
size {{-edgeDilate13.erode}}
name Dilate2
xpos -616
ypos -736
}
Premult {
name Premult2
xpos -616
ypos -682
}
Switch {
inputs 2
which {{edgeDilate13.useThreshold}}
name Switch2
xpos -520
ypos -586
}
set N775b45f0 [stack 0]
Dot {
name Dot23
xpos 1865
ypos -583
}
set N9bfe79e0 [stack 0]
Dot {
name Dot30
xpos 1865
ypos -535
}
set N9bfebd40 [stack 0]
Blur {
size {{edgeDilate13.Blur17.size} {edgeDilate13.Blur17.size}}
name Blur1
xpos 1832
ypos -496
}
Dot {
name Dot25
xpos 1865
ypos -439
}
set N736becf0 [stack 0]
Shuffle {
red alpha
green black
blue black
alpha black
name Shuffle4
label "\[value in]"
xpos 1688
ypos -400
}
set N736c3100 [stack 0]
Transform {
translate {{-parent.Blur17.size.w} 0}
center {1079 450}
black_outside false
name Transform1
xpos 1640
ypos -298
}
push $N736c3100
Transform {
translate {{parent.Blur17.size.w} 0}
center {1079 450}
black_outside false
name Transform2
xpos 1736
ypos -298
}
Merge2 {
inputs 2
operation minus
name Merge2
xpos 1688
ypos -250
}
push $N736becf0
Shuffle {
red black
green alpha
blue black
alpha black
name Shuffle5
label "\[value in]"
xpos 1976
ypos -400
}
set N84e5c270 [stack 0]
Transform {
translate {0 {-parent.Blur17.size.h}}
center {1079 450}
black_outside false
name Transform3
xpos 1928
ypos -298
}
push $N84e5c270
Transform {
translate {0 {parent.Blur17.size.h}}
center {1079 450}
black_outside false
name Transform4
xpos 2024
ypos -298
}
Merge2 {
inputs 2
operation minus
name Merge4
xpos 1976
ypos -250
}
Merge2 {
inputs 2
operation plus
name Merge6
xpos 1832
ypos -154
}
push $N9bfebd40
Dot {
name Dot31
xpos 1577
ypos -535
}
ShuffleCopy {
inputs 2
red red
green green
blue blue
out motion
name ShuffleCopy8
label "\[value in] to \[value out]"
xpos 1544
ypos -64
}
set Ndcfd9510 [stack 0]
IDistort {
channels rgba
uv motion
uv_scale {{edgeDilate13.Blur17.size.w} {edgeDilate13.Blur17.size.h}}
name IDistort2
xpos 1640
ypos 38
}
set Ndcfe6aa0 [stack 0]
Dot {
name Dot33
xpos 1673
ypos 281
}
push $Ndcfd9510
VectorBlur {
uv motion
scale {{edgeDilate13.Blur17.size.w} {edgeDilate13.Blur17.size.h}}
offset -1
name VectorBlur2
xpos 1544
ypos 32
}
Unpremult {
name Unpremult12
xpos 1544
ypos 86
}
Dot {
name Dot32
xpos 1577
ypos 233
}
push $N775b45f0
Dot {
name Dot1
xpos -487
ypos -487
}
set N76bc5680 [stack 0]
Dot {
name Dot4
xpos -151
ypos -487
}
set N76bc9ab0 [stack 0]
Dot {
name Dot17
xpos 137
ypos -487
}
Dot {
name Dot6
xpos 425
ypos -487
}
set N76bd2130 [stack 0]
Dot {
name Dot21
xpos 1097
ypos -439
}
set N76bd63b0 [stack 0]
GodRays {
translate {0 {-parent.Blur17.size.h}}
max true
name GodRays5
xpos 1112
ypos -256
}
push $N76bd63b0
GodRays {
translate {0 {parent.Blur17.size.h}}
max true
name GodRays4
xpos 1160
ypos -352
}
push 0
push $N76bd63b0
GodRays {
translate {{-parent.Blur17.size.w} 0}
max true
name GodRays3
xpos 1016
ypos -304
}
push $N76bd63b0
GodRays {
translate {{parent.Blur17.size.w} 0}
max true
name GodRays2
xpos 1256
ypos -304
}
Merge2 {
inputs 4+1
operation average
name Merge5
xpos 1160
ypos -154
}
set Nd2ebc310 [stack 0]
Shuffle {
red alpha
green alpha
blue alpha
name Shuffle6
label "\[value in]"
xpos 1016
ypos -64
}
Unpremult {
name Unpremult10
xpos 1016
ypos -10
}
push $Nd2ebc310
Unpremult {
name Unpremult13
xpos 1160
ypos -58
}
ShuffleCopy {
inputs 2
alpha red
name ShuffleCopy9
label "\[value in] to \[value out]"
xpos 1160
ypos 32
}
Dot {
name Dot27
xpos 1193
ypos 185
}
push $N76bd2130
LevelSet {
output -rgba.alpha
gradient motion
name LevelSet1
xpos 392
ypos -352
}
set N579cdc30 [stack 0]
IDistort {
uv motion
uv_scale {{edgeDilate13.Blur17.size.w} {edgeDilate13.Blur17.size.h}}
name IDistort1
xpos 584
ypos -208
}
Dot {
name Dot8
xpos 617
ypos 137
}
push $N579cdc30
Dot {
name Dot9
xpos 425
ypos -247
}
VectorBlur {
channels rgba
uv motion
scale {{parent.Blur17.size} {parent.Blur17.size}}
offset -1
name VectorBlur1
xpos 392
ypos -202
}
set Ncfeb5810 [stack 0]
Shuffle {
red alpha
green alpha
blue alpha
name Shuffle2
label "\[value in]"
xpos 248
ypos -112
}
Unpremult {
name Unpremult3
xpos 248
ypos -58
}
push $Ncfeb5810
Unpremult {
name Unpremult6
xpos 392
ypos -106
}
ShuffleCopy {
inputs 2
alpha red
name ShuffleCopy2
label "\[value in] to \[value out]"
xpos 392
ypos -16
}
push $N76bc9ab0
FilterErode {
channels all
size {{-parent.Blur17.size/2} {-parent.Blur17.size/2}}
filter {{Blur17.filter x1048 1}}
name FilterErode1
xpos -184
ypos -208
}
set N6bf8ede0 [stack 0]
Shuffle {
red alpha
green alpha
blue alpha
name Shuffle1
label "\[value in]"
xpos -328
ypos -112
}
Unpremult {
name Unpremult1
xpos -328
ypos -58
}
push $N6bf8ede0
Unpremult {
name Unpremult2
xpos -184
ypos -106
}
ShuffleCopy {
inputs 2
alpha red
name ShuffleCopy1
label "\[value in] to \[value out]"
xpos -184
ypos -16
}
push $N76bc5680
Dot {
name Dot10
xpos -822
ypos -487
}
set N736b11d0 [stack 0]
Defocus {
defocus {{parent.Blur17.size}}
name Defocus1
xpos -856
ypos -352
}
Dot {
name Dot11
xpos -822
ypos -295
}
set N873476d0 [stack 0]
Shuffle {
red alpha
green alpha
blue alpha
name Shuffle3
label "\[value in]"
xpos -951
ypos -256
}
Unpremult {
name Unpremult7
xpos -951
ypos -202
}
push $N873476d0
Unpremult {
name Unpremult8
xpos -855
ypos -250
}
ShuffleCopy {
inputs 2
alpha red
name ShuffleCopy4
label "\[value in] to \[value out]"
xpos -855
ypos -160
}
Dot {
name Dot14
xpos -822
ypos 41
}
push $N736b11d0
Dot {
name Dot2
xpos -1350
ypos -487
}
set N75febdc0 [stack 0]
Blur {
size 24
filter triangle
quality 8
name Blur17
xpos -1384
ypos -352
}
Dot {
name Dot5
xpos -1351
ypos -296
}
set N72db68f0 [stack 0]
Shuffle {
red alpha
green alpha
blue alpha
name Shuffle10
label "\[value in]"
xpos -1528
ypos -257
}
Unpremult {
name Unpremult5
xpos -1528
ypos -203
}
push $N72db68f0
Unpremult {
name Unpremult4
xpos -1384
ypos -250
}
ShuffleCopy {
inputs 2
alpha red
name ShuffleCopy3
label "\[value in] to \[value out]"
xpos -1384
ypos -160
}
Dot {
name Dot7
xpos -1351
ypos 40
}
push $N75febdc0
Dot {
name Dot15
xpos -1687
ypos -487
}
Dilate {
size {{parent.Blur17.size} {parent.Blur17.size}}
name Dilate1
xpos -1720
ypos -160
}
Dot {
name Dot16
xpos -1687
ypos 89
}
Switch {
inputs 9
which {{parent.method}}
name Switch1
xpos -520
ypos 326
}
Dot {
name Dot12
xpos -487
ypos 473
}
Dot {
name Dot13
xpos 2537
ypos 473
}
set N77dcd3b0 [stack 0]
push $N9bfe79e0
Dot {
name Dot26
xpos 3065
ypos -583
}
EdgeBlur {
inputs 1+1
size 4
filter box
quality 8
name EdgeBlur1
xpos 3032
ypos 464
}
Dot {
name Dot20
xpos 3065
ypos 569
}
set N734f83b0 [stack 0]
push $N77dcd3b0
Merge2 {
inputs 2
operation max
name Merge3
xpos 2504
ypos 758
}
Dot {
name Dot19
xpos 2537
ypos 1097
}
push $N734f83b0
Dot {
name Dot24
xpos 3065
ypos 831
}
EdgeDetectWrapper {
channels alpha
blurquality 0
name EdgeDetect1
xpos 3032
ypos 992
}
push $N77dcd3b0
push $N77dcd3b0
push $N734f83b0
push $N77dcd3b0
ShuffleCopy {
inputs 2
name ShuffleCopy6
label "\[value in] to \[value out]"
xpos 2744
ypos 560
}
EdgeBlur {
inputs 1+1
size {{edgeDilate13.EdgeBlur1.size}}
filter box
quality 4
name EdgeBlur2
xpos 2744
ypos 752
}
ShuffleCopy {
inputs 2
name ShuffleCopy7
label "\[value in] to \[value out]"
xpos 2744
ypos 848
}
push $N77dcd3b0
Switch {
inputs 2
which {{edgeDilate13.blendDetail}}
name Switch3
xpos 2696
ypos 950
}
set Nd2115800 [stack 0]
push $N734f83b0
push $Nd2115800
Merge2 {
inputs 2
name Merge1
xpos 2840
ypos 998
}
Switch {
inputs 2
which {{parent.dilationLayerOnly}}
name Switch5
selected true
xpos 2696
ypos 1094
}
set Nd2129620 [stack 0]
Sharpen {
inputs 1+1
size {{edgeDilate13.EdgeBlur1.size}}
mix {{edgeDilate13.sharpen_1}}
name Sharpen1
xpos 2936
ypos 1136
}
push $Nd2129620
Switch {
inputs 2
which {{edgeDilate13.sharpen}}
name Switch4
xpos 2936
ypos 1286
}
ShuffleCopy {
inputs 2
name ShuffleCopy5
label "\[value in] to \[value out]"
xpos 2936
ypos 1376
}
Output {
name Output1
xpos 2936
ypos 1526
}
StickyNote {
inputs 0
name StickyNote1
tile_color 0x232321ff
label "D: Secret!\nThe seventh and eighy indexes!\n Edge displace ripoff, iDistort and Vector blur editions\n(Normaly it uses the spatial displacement independently of the distortion for more control... \njoining both here for simplicity)"
xpos 1688
ypos -82
}
push $Nd2129620
push $Ndcfe6aa0
push 0
Viewer {
inputs 3
input_number 2
colour_sample_bbox {-0.3012048304 -0.007414272521 -0.3002780378 -0.006487488281}
viewerProcess None
name Viewer1
xpos 1352
ypos -154
}
end_group
Blur {
size 64
name Blur29
selected true
xpos 16136
ypos 12752
}
push $N7c84cb50
Blur {
size 128
name Blur30
selected true
xpos 15848
ypos 12608
}
Dot {
name Dot250
selected true
xpos 15881
ypos 12809
}
Dot {
name Dot251
selected true
xpos 15977
ypos 12809
}
Merge2 {
inputs 2
operation average
name Merge85
selected true
xpos 16136
ypos 12854
}
push $Nf36f4070
Dot {
name Dot252
selected true
xpos 16457
ypos 12425
}
push $Nd213f220
Merge2 {
inputs 2
operation minus
name Merge86
selected true
xpos 16424
ypos 12710
}
Saturation {
saturation 0
name Saturation8
selected true
xpos 16424
ypos 12758
}
Multiply {
channels rgb
value 2.75
name Multiply33
selected true
xpos 16424
ypos 12806
}
Merge2 {
inputs 2
operation multiply
name Merge87
selected true
xpos 16424
ypos 12902
}
Multiply {
inputs 1+1
channels rgb
value 2
name Multiply34
selected true
xpos 16424
ypos 12950
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment