Skip to content

Instantly share code, notes, and snippets.

@kpprt
Last active April 27, 2018 09:28
Show Gist options
  • Save kpprt/368bfc06d2b30fac3aa0 to your computer and use it in GitHub Desktop.
Save kpprt/368bfc06d2b30fac3aa0 to your computer and use it in GitHub Desktop.
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}
addUserKnob {3 FrameRange1_first_frame l "frame range"}
FrameRange1_first_frame 1001
addUserKnob {3 FrameRange1_last_frame l "" -STARTLINE R -123 1}
FrameRange1_last_frame 1100
addUserKnob {3 AppendClip1_dissolve l "Cross Dissolve"}
AppendClip1_dissolve 10
addUserKnob {6 offset_by_dissolve l "offset by dissolve" -STARTLINE}
offset_by_dissolve true
}
Input {
inputs 0
name Input
xpos -480
ypos 206
}
FrameRange {
first_frame {{parent.FrameRange1_first_frame}}
last_frame {{parent.FrameRange1_last_frame}}
time ""
name FrameRange1
xpos -480
ypos 278
}
set N55f19400 [stack 0]
Dot {
name Dot2
xpos -556
ypos 282
}
Dot {
name Dot1
xpos -556
ypos 330
}
push $N55f19400
AppendClip {
inputs 2
dissolve {{parent.AppendClip1_dissolve}}
firstFrame {{parent.FrameRange1_first_frame}}
meta_from_first false
time ""
name AppendClip1
xpos -480
ypos 326
}
TimeClip {
time ""
first {{"parent.FrameRange1_first_frame + parent.AppendClip1.dissolve"}}
before loop
last {{parent.FrameRange1_last_frame}}
after loop
origset true
name TimeClip1
xpos -480
ypos 374
}
set N9d7ae800 [stack 0]
TimeOffset {
time_offset {{-parent.AppendClip1_dissolve}}
time ""
name TimeOffset1
xpos -370
ypos 422
}
push $N9d7ae800
Switch {
inputs 2
which {{parent.offset_by_dissolve}}
name Switch1
xpos -480
ypos 422
}
Output {
name Output1
xpos -480
ypos 494
}
end_group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment