Skip to content

Instantly share code, notes, and snippets.

@kpprt
Last active November 5, 2018 17:29
Show Gist options
  • Save kpprt/2485665d3112fd53fdfcdda76392547b to your computer and use it in GitHub Desktop.
Save kpprt/2485665d3112fd53fdfcdda76392547b to your computer and use it in GitHub Desktop.
Shows the current shot side by side with the previous and the next shot in Nuke. Also the previous shot and the next shot are temporally aligned to the current shot.
set cut_paste_input [stack 0]
version 10.5 v7
push 0
push 0
push $cut_paste_input
Group {
inputs 3
name CS_SequenceViewer1
addUserKnob {20 CS_SequenceViewer}
}
Input {
inputs 0
name InputnextShot
xpos 950
ypos 398
number 2
}
Retime {
input.first 1001
input.last 1053
output.first {{InputcurrentShot.last_frame}}
output.first_lock true
output.last 1246
filter nearest
time ""
name Retime2
xpos 950
ypos 446
}
Dot {
name Dot2
xpos 984
ypos 498
}
Input {
inputs 0
name InputcurrentShot
xpos 840
ypos 398
}
Retime {
input.first 1096
input.last 1194
output.first 1096
output.last 1194
filter nearest
time ""
name Retime3
xpos 840
ypos 446
}
Input {
inputs 0
name InputpreviousShot
xpos 730
ypos 398
number 1
}
Retime {
input.first 1001
input.last 1058
output.first 1039
output.last {{InputcurrentShot.first_frame}}
output.last_lock true
filter nearest
time ""
name Retime1
xpos 730
ypos 446
}
Dot {
name Dot1
xpos 764
ypos 498
}
ContactSheet {
inputs 3
width {{"max(input0.width,input1.width,input2.width) * 3"}}
height {{max(input0.height,input1.height,input2.height)}}
rows 1
columns 3
center true
roworder TopBottom
name ContactSheet3
xpos 840
ypos 494
}
FrameRange {
first_frame {{Retime1.first_frame}}
last_frame {{Retime2.last_frame}}
time ""
name FrameRange1
xpos 840
ypos 542
}
Output {
name Output
xpos 840
ypos 590
}
end_group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment