Skip to content

Instantly share code, notes, and snippets.

View kpprt's full-sized avatar

Christian Kauppert kpprt

View GitHub Profile
@kpprt
kpprt / CS_PixelOffsetExpression.tcl
Created July 15, 2015 11:35
Expression for Nuke to easily offset and repeat pixels at the edge of the image
set cut_paste_input [stack 0]
version 9.0 v5
push $cut_paste_input
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)"
@kpprt
kpprt / CS_Looper.tcl
Last active April 27, 2018 09:28
Simple Looper with cross dissolve functionality for Nuke
set cut_paste_input [stack 0]
version 10.5 v3
push $cut_paste_input
Group {
name CS_Looper1
tile_color 0xafa35dff
selected true
xpos 7880
ypos 5798
addUserKnob {20 Looper}
@kpprt
kpprt / CS_WiggleAxis.tcl
Last active August 29, 2015 14:24
WiggleAxis to create a 3D shake for Nuke
set cut_paste_input [stack 0]
version 9.0 v5
push $cut_paste_input
Axis2 {
translate {{"noise(frame * frequency, seeds.x) * noise(frame * frequency * 0.666, seeds.y) * noise(frame * frequency * 0.333, seeds.z) * amplitude * 8"} {"noise(frame * frequency, seeds.z) * noise(frame * frequency * 0.666, seeds.x) * noise(frame * frequency * 0.333, seeds.y) * amplitude * 8"} {"noise(frame * frequency, seeds.y) * noise(frame * frequency * 0.666, seeds.z) * noise(frame * frequency * 0.333, seeds.x) * amplitude * 8"}}
name CS_WiggleAxis1
selected true
xpos 0
ypos 0
addUserKnob {20 Wiggle}