Skip to content

Instantly share code, notes, and snippets.

@kpprt
Last active July 1, 2016 14:56
Show Gist options
  • Save kpprt/bacd8c25657cc3c0154d to your computer and use it in GitHub Desktop.
Save kpprt/bacd8c25657cc3c0154d to your computer and use it in GitHub Desktop.
Interpolate between frames to restore broken frames in Nuke.
set cut_paste_input [stack 0]
version 9.0 v8
push $cut_paste_input
Group {
name CS_FixFrames1
addUserKnob {20 CS_FixFrames}
addUserKnob {3 first_frame_to_fix l range}
first_frame_to_fix 1
addUserKnob {3 last_frame_to_fix l "" -STARTLINE R 0 100}
last_frame_to_fix 1
}
Input {
inputs 0
name Input
xpos 400
ypos -322
}
Dot {
name Dot1
xpos 434
ypos -246
}
set Nd3bedc00 [stack 0]
Retime {
input.first {{"parent.first_frame_to_fix - 1"}}
input.first_lock true
input.last {{"parent.last_frame_to_fix + 1"}}
input.last_lock true
output.first {{"parent.first_frame_to_fix - 1"}}
output.first_lock true
output.last 1
speed {{"input.last - input.first" x1120 1.5}}
filter none
time ""
name Retime1
selected true
xpos 510
ypos -250
}
FrameRange {
first_frame {{"parent.first_frame_to_fix - 1"}}
last_frame {{parent.last_frame_to_fix}}
time ""
name FrameRange1
xpos 620
ypos -250
}
Kronos {
useGPUIfAvailable false
input.first {{first_frame}}
input.last {{last_frame}}
retimedChannels all
timingOutputSpeed {{"1 / Retime1.speed"}}
showLegacyMode false
motionEstimation Regularized
legacyModeNuke9 false
name Kronos1
xpos 620
ypos -160
}
push $Nd3bedc00
Switch {
inputs 2
which {{"frame >= parent.first_frame_to_fix && frame <= parent.last_frame_to_fix"}}
name Switch1
tile_color 0xff00ff
xpos 400
ypos -154
}
Output {
name Output
xpos 400
ypos -82
}
end_group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment