well, i don't know your exact requirements... but it seems to me
that using frame numbers for altering between different images
might not be the best way of handling this. maybe you could try
something like collecting a list of all images in your target
directory and alter the read file path for each render to match
this list.
something like:
import nuke
import os
target_directory = "path/to/your/directory"
dynamic_read = nuke.toNode("YourReadNode")
dynamic_write = nuke.toNode("YourWriteNode")
write_number = 1
for file_name in os.listdir(target_directory):
file_path = os.path.join(target_directory, file_name)
dynamic_read['file'].fromUserText(file_path)
nuke.execute(dynamic_write, write_number, write_number)
write_number = write_number + 1
you could even have the write node use the same file name as the
read node instead of a sequential numbering scheme.
hope that gives some ideas
chris
On 5/11/12 at 2:07 PM, olivier...@moving-picture.com wrote:
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..
_______________________________________________
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