NUKE tools

NUKE curvy distortion


set cut_paste_input [stack 0]
version 6.3 v9
push $cut_paste_input
Reformat {
 name Reformat1
 selected true
 xpos -223
 ypos -199
}
Expression {
 temp_name0 dist
 temp_expr0 "max(sqrt(pow2(center.x-x) + pow2(center.y-y)), 0.001)"
 temp_name1 vx
 temp_expr1 (center.x-x)/dist*(dist-radius)*2
 temp_name2 vy
 temp_expr2 (center.y-y)/dist*(dist-radius)*2
 channel0 {forward.u -forward.v -backward.u backward.u}
 expr0 "dist < radius? 0 : vx"
 channel1 {-forward.u forward.v -backward.u backward.u}
 expr1 "dist < radius? 0 : vy"
 expr3 "dist < radius*2"
 name Expression1
 selected true
 xpos -223
 ypos -155
 addUserKnob {20 User}
 addUserKnob {12 center}
 center {979 544}
 addUserKnob {7 radius R 0 1000}
 radius 262
}
ColorCorrect {
 name ColorCorrect1
 selected true
 xpos -223
 ypos -95
}
IDistort {
 channels rgb
 uv motion
 name Distort
 tile_color 0x55ff7fff
 selected true
 xpos -223
 ypos -54
}
Premult {
 name Premult1
 selected true
 xpos -223
 ypos -7
}