hmm, the script below seems to work for me...

otherwise you could also try a python script like:

write_node = nuke.selectedNode() #write node
all_frames = [1,2,3,4,5]
for current_frame in all_frames:
 nuke.execute(write_node, current_frame, current_frame)



set cut_paste_input [stack 0]
push $cut_paste_input
Transform {
 translate {0 0}
 rotate {{curve i x1 1 2 1 2 1}}
 center {960 540}
 filter Keys
 name Transform1
 selected true
 xpos -7
 ypos -109
}
Read {
 inputs 0
 file /Volumes/INT-tmp/test2.##.jpg
 format "640 480 0 0 640 480 1 PC_Video"
 last 10
 origlast 10
 origset true
 version 2
 name Read3
 label "\[knob colorspace]"
 selected true
 xpos -251
 ypos 324
}
set N55803c0 [stack 0]
push $N55803c0
push $N55803c0
Read {
 inputs 0
 file "/Volumes/INT-tmp/test.0\[value parent.Transform1.rotate].jpg"
 format "640 480 0 0 640 480 1 PC_Video"
 last 5
 origlast 10
 origset true
 version 3
 name Read1
 label "\[knob colorspace]"
 selected true
 xpos -249
 ypos 38
}
Text {
 message "\[value Read1.file]"
 font /Library/Fonts/Arial.ttf
 size 30
 yjustify center
 box {100 120 552.5 360}
 center {320 240}
 name Text1
 selected true
 xpos -249
 ypos 164
}
Write {
 file /Volumes/INT-tmp/test2.%02d.jpg
 colorspace sRGB
 file_type jpeg
 checkHashOnRead false
 version 17
 name Write2
 label "\[knob colorspace]"
 selected true
 xpos -249
 ypos 211
}
ColorWheel {
 inputs 0
 format "640 480 0 0 640 480 1 PC_Video"
 gamma 0.45
 name ColorWheel1
 selected true
 xpos -310
 ypos -211
}
set N22bb3e50 [stack 0]
ColorBars {
 inputs 0
 format "640 480 0 0 640 480 1 PC_Video"
 name ColorBars1
 selected true
 xpos -184
 ypos -206
}
push $N22bb3e50
Switch {
 inputs 3
 which {{parent.Transform1.rotate i}}
 name Switch1
 selected true
 xpos -249
 ypos -107
}
Write {
 file /Volumes/INT-tmp/test.%02d.jpg
 colorspace sRGB
 file_type jpeg
 checkHashOnRead false
 version 4
 name Write1
 label "\[knob colorspace]"
 selected true
 xpos -249
 ypos -42
}
Viewer {
 inputs 5
 frame 3
 input_number 2
 input_process false
 name Viewer1
 selected true
 xpos -425
 ypos 451
}


_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to