Skip to content

Instantly share code, notes, and snippets.

@draconiansolo
draconiansolo / thing.tcl
Created December 11, 2015 10:17
Nuke environment map reflections.
set cut_paste_input [stack 0]
version 9.0 v3
push $cut_paste_input
Camera2 {
name Camera1
selected true
xpos -11
ypos -294
}
set Ncba4b20 [stack 0]
@draconiansolo
draconiansolo / gist:2b0f6034f9ae053d476e
Created August 1, 2015 14:24
Nuke Python, label all shuffles with [value in]
for n in nuke.allNodes():
if n.Class()=="Shuffle":
print "a wild shuffle appeared"
n.knobs()["label"].setValue("[value in]")
@draconiansolo
draconiansolo / Chroma_Luma
Created April 9, 2015 13:54
Chroma_Luma mixer
set cut_paste_input [stack 0]
version 9.0 v3
push 0
push $cut_paste_input
Group {
inputs 2
name Chroma_Luma
tile_color 0x7f3f6fff
selected true
xpos 8
@draconiansolo
draconiansolo / gist:5443bba6ba5974d7eb78
Created March 12, 2015 17:32
Convolve with tiny kernel... weird!
set cut_paste_input [stack 0]
version 8.0 v6
Radial {
inputs 0
area {0 0 256 256}
name Radial2
selected true
xpos 2696
ypos 3110
}
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 cut_paste_input [stack 0]
version 8.0 v6
push $cut_paste_input
Group {
name GrainQC
selected true
xpos 7496
ypos 16022
addUserKnob {20 User}
addUserKnob {41 size l Radius T Blur7.size}
set cut_paste_input [stack 0]
version 7.0 v9
push $cut_paste_input
Convolve2 {
serializeKnob ""
use_input_channels true
normalize false
name Convolve3
selected true
xpos 923
@draconiansolo
draconiansolo / gist:9e1e61d92460fd00d4f3
Created June 11, 2014 11:30
Nuke vector field expressions
set cut_paste_input [stack 0]
version 7.0 v9
push $cut_paste_input
Expression {
expr0 (x-width/2)/width
expr1 (y-height/2)/height
name Expression8
label "Zoom blur vectors expression"
selected true
xpos -2723
@draconiansolo
draconiansolo / gist:3f06be34f66245c1bcfb
Last active August 29, 2015 14:01
Dodgy zdepth to defocus expression
set cut_paste_input [stack 0]
version 8.0 v6
push $cut_paste_input
Group {
name ZDeefucoos_Depth_to_Direct
help "So confuse?\nThis transforms your depth (in meters) into a beautiful defocus map that can be used with the direct mode in Zdefocus and such.\nThe value of the circle of confusion is sensor dependent but seems to always be somewhat around 0.025."
tile_color 0xff5e00ff
label "of Doom"
selected true
xpos 6248
@draconiansolo
draconiansolo / gist:11172962
Last active November 10, 2020 16:56
Nuke: Get frequency detail from an image and add it to another
set cut_paste_input [stack 0]
version 8.0 v6
push 0
push $cut_paste_input
Group {
inputs 2
name Recover_Frequencies3
tile_color 0xe0671fff
selected true
xpos -15688