#! /Applications/Nuke5.1v5/Nuke5.1v5.app/Contents/MacOS/Nuke5.1v5 -nx version 5.1500 Gizmo { inputs 2 tile_color 0x99ff help "Wipe between two clips. Set the duration (in frames) and the starting frame. Enable freeze frame, to freeze during the wipe." addUserKnob {20 User t "Wipe between two clips. Set the duration (in frames) and the starting frame. Enable freeze frame, to freeze during the wipe."} addUserKnob {1 duration l "duration (frames)" t "The length of the wipe (in frames)"} duration 48 addUserKnob {1 startframe l "start frame" t "The frame to begin the wipe."} startframe 10 addUserKnob {6 freeze t "Check this box, to freeze the frame at the beginning of the wipe. Once the wipe is complete, the video will continue. Be sure to set the project duration to handle the extra time." -STARTLINE} addUserKnob {26 ""} addUserKnob {26 "" -STARTLINE T "Created by Andrew Zeneski (www.andrewzeneski.com)"} } Input { inputs 0 name Input2 xpos -215 ypos 6 } set N18d7a0e0 [stack 0] Dot { name Dot1 xpos 53 ypos -46 } Retime { input.first {{"\[knob freeze] && frame >= \[knob startframe] + \[knob duration] ? \[knob startframe] : 1" i}} input.first_lock true input.last 56 output.first {{"\[knob freeze] && frame >= \[knob startframe] + \[knob duration] ? \[knob startframe] + \[knob duration] : 1" i}} output.first_lock true output.last 56 name Retime1 xpos 19 ypos 215 } Input { inputs 0 name Input1 xpos -309 ypos 6 number 1 } set N18d69140 [stack 0] FrameHold { first_frame {{"\[knob startframe]" i}} name FrameHold1 xpos -442 } push $N18d69140 Switch { inputs 2 which {{"\[knob freeze] && frame > \[knob startframe] && frame < \[knob startframe] + \[knob duration]" i}} name Switch1 xpos -442 ypos 93 } Crop { box {{"frame >= \[knob startframe] ? min(input.width, (input.width / (\[knob duration] ) * (frame - \[knob startframe]))) : 0" i} 0 {input.width i} {input.height i}} intersect true name Crop2 selected true xpos -442 ypos 159 } push $N18d7a0e0 FrameHold { first_frame {{"\[knob startframe]" i}} name FrameHold2 xpos -77 } push $N18d7a0e0 Switch { inputs 2 which {{"Switch1.which " i}} name Switch2 xpos -77 ypos 91 } Crop { box {0 0 {"frame >= \[knob startframe] ? min(input.width, input.width / (\[knob duration] ) * (frame - \[knob startframe])) : 0" i} {input.height i}} intersect true name Crop1 xpos -77 ypos 159 } Merge2 { inputs 2 name Merge1 xpos -257 ypos 159 } set N1ad78130 [stack 0] Switch { inputs 2 which {{"frame >= \[knob startframe] + \[knob duration]" i}} name Switch3 xpos -257 ypos 215 } Output { name Output1 xpos -257 ypos 302 } push $N1ad78130 Viewer { name Viewer1 xpos -100 ypos 326 } end_group