Frame range from read node in python

Hi guys,

does anyone know how to retrieve the first and last frame from a read node created through Python?:

r=nuke.createNode(‘Read’)[‘file’].setValue(‘/the/file/folder/filename.%04d.dpx’)

when i do so the frame range is 1 to 1 and i dont want to set it via r[‘first’].setValue() and r[‘last’].setValue because for our project we dont know how many frames will be present in the sequence so i need to retrieve it from the read node. Cheers

Kim

No Responses to “Frame range from read node in python”

Post a Comment