Last active
August 29, 2015 14:25
-
-
Save kpprt/dd12ee3030a010a44d3e to your computer and use it in GitHub Desktop.
Tiling Helper for Nuke that blends between offsetted repeated pixels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set cut_paste_input [stack 0] | |
version 9.0 v5 | |
push $cut_paste_input | |
Group { | |
name CS_SoftTiler1 | |
selected true | |
xpos 0 | |
ypos 0 | |
addUserKnob {20 SoftTiler} | |
addUserKnob {12 offset} | |
offset {100 100} | |
addUserKnob {14 overlap R 0 100} | |
overlap 100 | |
addUserKnob {6 keep_format l "keep format" t "input will be scaled up to keep the format" +STARTLINE} | |
addUserKnob {14 softness R 0 100} | |
softness 100 | |
} | |
Input { | |
inputs 0 | |
name Input | |
xpos -480 | |
ypos -154 | |
} | |
Expression { | |
temp_name0 dx | |
temp_expr0 "(x - offset.x + width) % width" | |
temp_name1 dy | |
temp_expr1 "(y - offset.y + height) % height" | |
expr0 "r(dx, dy)" | |
expr1 "g(dx, dy)" | |
expr2 "b(dx, dy)" | |
expr3 "a(dx, dy)" | |
name CS_PixelOffsetExpression1 | |
xpos -480 | |
ypos -82 | |
addUserKnob {20 PixelOffset} | |
addUserKnob {12 offset} | |
offset {{parent.offset.x} {parent.offset.y}} | |
} | |
set N3c24400 [stack 0] | |
Dot { | |
name Dot4 | |
xpos 214 | |
ypos -78 | |
} | |
Crop { | |
box {{-parent.softness.w} {parent.offset.y} {parent.offset.x} {"height + parent.softness.h"}} | |
softness {{parent.softness} {parent.softness}} | |
intersect true | |
name Crop4 | |
xpos 180 | |
ypos -10 | |
} | |
set N3c25800 [stack 0] | |
Transform { | |
scale {{"1 + parent.overlap.w / width"} {"1 + parent.overlap.h / height"}} | |
center {0 {height}} | |
black_outside false | |
name Transform4 | |
xpos 70 | |
ypos 38 | |
} | |
push $N3c25800 | |
Reformat { | |
type "to box" | |
box_width {{"width - parent.overlap.w"}} | |
box_height {{"height - parent.overlap.h"}} | |
resize none | |
name Reformat1 | |
xpos 290 | |
ypos -10 | |
} | |
set Cacb80400 [stack 0] | |
Transform { | |
translate {{"parent.overlap.w / 2"} {"-parent.overlap.h / 2"}} | |
center {9540 1910} | |
black_outside false | |
name Transform8 | |
xpos 290 | |
ypos 38 | |
} | |
Switch { | |
inputs 2 | |
which {{parent.keep_format}} | |
name Switch1 | |
xpos 180 | |
ypos 86 | |
} | |
set Cacb81c00 [stack 0] | |
Dot { | |
name Dot2 | |
xpos 214 | |
ypos 138 | |
} | |
push $N3c24400 | |
Crop { | |
box {{parent.offset.x} {parent.offset.y} {"width + parent.softness.w"} {"height + parent.softness.h"}} | |
softness {{parent.softness} {parent.softness}} | |
intersect true | |
name Crop3 | |
xpos -260 | |
ypos -10 | |
} | |
set N3c5f400 [stack 0] | |
Transform { | |
scale {{"1 + parent.overlap.w / width"} {"1 + parent.overlap.h / height"}} | |
center {{width} {height}} | |
black_outside false | |
name Transform3 | |
xpos -370 | |
ypos 38 | |
} | |
push $N3c5f400 | |
clone $Cacb80400 { | |
xpos -150 | |
ypos -10 | |
selected false | |
} | |
Transform { | |
translate {{"-parent.overlap.w / 2"} {"-parent.overlap.h / 2"}} | |
center {9540 1910} | |
black_outside false | |
name Transform7 | |
xpos -150 | |
ypos 38 | |
} | |
clone $Cacb81c00 { | |
inputs 2 | |
xpos -260 | |
ypos 86 | |
selected false | |
} | |
push 0 | |
push $N3c24400 | |
Crop { | |
box {{parent.offset.x} {-parent.softness.h} {"width + parent.softness.w"} {parent.offset.y}} | |
softness {{parent.softness} {parent.softness}} | |
intersect true | |
name Crop2 | |
xpos -700 | |
ypos -10 | |
} | |
set N3c5ec00 [stack 0] | |
Transform { | |
scale {{"1 + parent.overlap.w / width"} {"1 + parent.overlap.h / height"}} | |
center {{width} 0} | |
black_outside false | |
name Transform2 | |
xpos -810 | |
ypos 38 | |
} | |
push $N3c5ec00 | |
clone $Cacb80400 { | |
xpos -590 | |
ypos -10 | |
selected false | |
} | |
Transform { | |
translate {{"-parent.overlap.w / 2"} {"parent.overlap.h / 2"}} | |
center {9540 1910} | |
black_outside false | |
name Transform6 | |
xpos -590 | |
ypos 38 | |
} | |
clone $Cacb81c00 { | |
inputs 2 | |
xpos -700 | |
ypos 86 | |
selected false | |
} | |
push $N3c24400 | |
Dot { | |
name Dot1 | |
xpos -1106 | |
ypos -78 | |
} | |
Crop { | |
box {{-parent.softness.w} {-parent.softness.h} {parent.offset.x} {parent.offset.y}} | |
softness {{parent.softness} {parent.softness}} | |
intersect true | |
name Crop1 | |
xpos -1140 | |
ypos -10 | |
} | |
set N3c5e000 [stack 0] | |
Transform { | |
scale {{"1 + parent.overlap.w / width"} {"1 + parent.overlap.h / height"}} | |
black_outside false | |
name Transform1 | |
xpos -1250 | |
ypos 38 | |
} | |
push $N3c5e000 | |
clone $Cacb80400 { | |
xpos -1030 | |
ypos -10 | |
selected false | |
} | |
Transform { | |
translate {{"parent.overlap.w / 2"} {"parent.overlap.h / 2"}} | |
center {9540 1910} | |
black_outside false | |
name Transform5 | |
xpos -1030 | |
ypos 38 | |
} | |
clone $Cacb81c00 { | |
inputs 2 | |
xpos -1140 | |
ypos 86 | |
selected false | |
} | |
Dot { | |
name Dot3 | |
xpos -1106 | |
ypos 138 | |
} | |
Merge2 { | |
inputs 4+1 | |
operation plus | |
name Plus | |
xpos -480 | |
ypos 134 | |
} | |
Output { | |
name Output1 | |
xpos -480 | |
ypos 206 | |
} | |
end_group |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment