OK, good new I potentially the problem.
my images called are on this form : mypath/f[value parent.meta].exr that do mypath/f2.exr if my meta is 2 the problem comes when the meta is 2.2 or similar form, that gives mypath/f2.2.exr I think that is what stop the refresh to behave correctly. If i use frames from a sequence it work. but that is annoying because i am grabbing those value from the metadata and would need to convert the result in an other form to feed the path with an other naming convention more confusing...

olivier...@moving-picture.com wrote:
you script work definitively. Some simpler setup on the same model than my tool worked too
That frustrate me even more as mine don't refresh in the render.
The only difference is there is more expressions in my final path.
and even in the gui Nuke stuggle to refresh it realtime, i need to view something else and go back to my node view to refresh the file.
even by simplifying my expression, it doesn't work.
I am not sure I am allowed to post it here so I will not for the moment.
but what can stop my expressions to refresh ??



chris wrote:
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

_______________________________________________
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

_______________________________________________
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