Skip to content

Instantly share code, notes, and snippets.

@greenvfx
Last active February 23, 2018 15:47
Show Gist options
  • Save greenvfx/240c44f1459badeb51bd9b840d684bff to your computer and use it in GitHub Desktop.
Save greenvfx/240c44f1459badeb51bd9b840d684bff to your computer and use it in GitHub Desktop.
Nuke example: BlendMat with stencil and projection.
set cut_paste_input [stack 0]
version 10.0 v5
Camera2 {
inputs 0
translate {0 0 6.039999962}
name Camera1
selected true
xpos 630
ypos -102
}
set N3dcfb800 [stack 0]
CheckerBoard2 {
inputs 0
name CheckerBoard1
selected true
xpos 206
ypos -257
}
Dot {
name Dot1
selected true
xpos 240
ypos -160
}
set N3dcfbc00 [stack 0]
Sphere {
translate {0.5400009155 -0.1639999896 2.214999914}
uniform_scale 0.105
name Sphere2
selected true
xpos 113
ypos -87
}
push $N3dcfb800
push $cut_paste_input
Bezier {
points {{
{1468 570 115.7 -3.12 115.7}
{1338 126 115.7 -0.72 115.7}
{1962 138 156 1.29 156}
}}
shape {{curve L x1 0}}
center {1024 436}
name Bezier1
selected true
xpos 390
ypos -163
}
Project3D2 {
inputs 2
name Project3D1
selected true
xpos 390
ypos -103
}
BlendMat {
operation stencil
name BlendMat1
selected true
xpos 390
ypos -58
}
Card2 {
translate {0.7099999785 -0.1400000006 1.429999948}
uniform_scale 1.7
control_points {3 3 3 6
1 {-0.5 -0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0 0 0}
1 {0 -0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {0.5 0 0}
1 {0.5 -0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666865 0} 0 {0 0 0} 0 {1 0 0}
1 {-0.5 0 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0 0.5 0}
1 {0 0 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {0.5 0.5 0}
1 {0.5 0 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0.1666666716 0} 0 {0 -0.1666666716 0} 0 {1 0.5 0}
1 {-0.5 0.5 0} 0 {0.1666666865 0 0} 0 {0 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0 1 0}
1 {0 0.5 0} 0 {0.1666666716 0 0} 0 {-0.1666666716 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {0.5 1 0}
1 {0.5 0.5 0} 0 {0 0 0} 0 {-0.1666666865 0 0} 0 {0 0 0} 0 {0 -0.1666666865 0} 0 {1 1 0} }
name Card1
selected true
xpos 382
ypos -10
}
push $N3dcfbc00
Sphere {
name Sphere1
selected true
xpos 206
ypos -82
}
Scene {
inputs 3
name Scene1
selected true
xpos 216
ypos -30
}
push 0
ScanlineRender {
inputs 3
conservative_shader_sampling false
motion_vectors_type distance
name ScanlineRender1
selected true
xpos 206
ypos 144
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment