I can't, well, it would be quiet painful and a mess, because it depend
of the input. i am loading an image depending of the aperture of the
input, so it is 1 sequence, but it depend of the focal length too (1 seq
for each focal) then also depend of the lens, and the model of cam .....
so i have quiet a few 'sequences' of aperture.
what you suggest would force me to have all the options loaded in the
script and edit the script for each new addition. when doing it that way
just need to read folders.
and if i don't use 1.2.exr that seems to work. that just force me to
convert the data : if it is 1.2, grab image 1, if it is 1.4, grad the
image 2 ..... more confusing but at least it work.
I don't know why having this . bother nuke that much to refresh....
chris wrote:
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
_______________________________________________
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