Skip to content

Instantly share code, notes, and snippets.

@draconiansolo
draconiansolo / gist:7552200
Created November 19, 2013 20:43
Paralax mapping of sorts On Nuke
set cut_paste_input [stack 0]
version 6.3 v8
Camera2 {
inputs 0
translate {0 0 8.75}
name Camera2
selected true
xpos -4734
ypos 15298
}
@draconiansolo
draconiansolo / gist:7483585
Created November 15, 2013 12:28
Nuke... quick... what nodes have $gui in expressions.
nodes=nuke.allNodes()
for node in nodes:
for knob in node.knobs().values():
if knob.hasExpression():
string=knob.toScript()
if "$gui" in string:
print "expression"+string
print " is in node" + node.name()
@draconiansolo
draconiansolo / gist:7067665
Last active December 26, 2015 00:58
super quick "do this thing" to selected nodes in nuke.
for node in nuke.selectedNodes():
node["knob"].setValue("value") #change knob and value for the needed contents
#node["buttonknobName"].execute() #execute button
@draconiansolo
draconiansolo / gist:6830059
Last active December 24, 2015 16:39
Good old After effects style offset for nuke
set cut_paste_input [stack 0]
version 9.0 v3
push $cut_paste_input
Group {
name AE_Offset
help "Good Old After Effects style offset.\nSlow as hell."
tile_color 0xff5f00ff
selected true
xpos -64
ypos -250
@draconiansolo
draconiansolo / gist:6744801
Last active February 17, 2021 14:52
Self-contained nuke knobChanged callbacks...To be able to add a callback when knobs change on a group or gizmo without having to create init callback scripts on the menu.py and stuff.So it is waaay better to do it like this for copypastas :D
#based on http://forums.thefoundry.co.uk/phpBB2/viewtopic.php?t=3602&sid=7c140135632c783e7147e0e1b577eaa6
#which is most interesting...
#code="""
print 'knobChanged fired...'
n=nuke.thisNode()
k=nuke.thisKnob()
if k.name()=='number':
print 'yyyay!!!!!'
#"""
@draconiansolo
draconiansolo / gist:6726537
Last active December 24, 2015 01:49
Nuke Roto motion blur diagnostic copypasta
set cut_paste_input [stack 0]
version 6.3 v8
push $cut_paste_input
Group {
name n_Roto_MBDiagnostic
tile_color 0xdfff00ff
label "Of Joy"
selected true
xpos 29
ypos 896
@draconiansolo
draconiansolo / gist:6687845
Created September 24, 2013 17:03
Autodistort copypasta
set cut_paste_input [stack 0]
version 6.3 v8
push $cut_paste_input
Noise {
output motion
cliptype none
size 3
gain 1
gamma 1
center {1648 1350}
@draconiansolo
draconiansolo / gist:6685651
Last active December 23, 2015 19:49
Quick expression green despill with controls copypasta
set cut_paste_input [stack 0]
version 6.3 v8
push $cut_paste_input
Group {
name n_Despill
help "Super destructive Green Despill Can be used after the whole despilling to get rid of the last bits of green. Default values are : Red Weight 0.5 Blue Weight 0.5 Luminance 1 PrePostOffset 0 GreenMultiplier 1 Mix 1 (That way it acts just as the good old cmivfx tutorials despill expression)\n(based on Agustin's input on how other despills worked)\n\n--Nico [email protected]"
tile_color 0x3f94ffff
label "Of Doom"
selected true
xpos 3512
@draconiansolo
draconiansolo / gist:6507420
Last active December 22, 2015 17:39
Per-frequency oflow copyasta. (in case lights are making vectors go crazy)
set cut_paste_input [stack 0]
version 6.3 v8
push $cut_paste_input
Dot {
name Dot4
selected true
xpos -3751
ypos 419
}
set Nc04a280 [stack 0]
@draconiansolo
draconiansolo / gist:6388100
Created August 30, 2013 09:33
Clean bg generator for blue and green screens using pickers.
set cut_paste_input [stack 0]
version 6.3 v8
CheckerBoard2 {
inputs 0
name CheckerBoard1
selected true
xpos 1749
ypos 1599
}
Dot {