Read a sequence using Python

I am asking Nuke to create a read node after asking the user to specify a path.

Quote:

sciezka = nuke.getFilename(‘some name’) r = nuke.createNode(‘Read’)
r[‘file’].setValue(sciezka)


thing is that if it is a sequence it does not detect it just imports a single file that I pointed. If I tick the sequence option and select that it creates the read node with an error. After the node is created I have to point it again to the sequence. It is easier this time as I do not have to look for the path again but still…

Is it possible to load sequences using Python or to add another line to the script to make Nuke reconnect the file as a sequence?

No Responses to “Read a sequence using Python”

Post a Comment