multiple writes for multiple reads

Hi. Can anyone of the wizards around here help me out with this little thingie.

I am trying to attach multiple write nodes to selected multiple read nodes, as simple and straightforward.

I was hoping a for function would help me, but again, I have a logical error somewhere. If anyone knows an elegant way around the problem, I’d appreciate it.

Here’s the script.

n = nuke.selectedNodes()

for n in sn:

first = n.firstFrame()
last = n.lastFrame()
a = n[‘file’].value()

wr = nuke.nodes.Write (name="Write_DPX",file=a, colorspace="rec709").setInput(0,n)
wr[‘disable’].setExpression("((frame < n.first)?true:false)||((frame > n.last)?true:false)")

Thanks guys

No Responses to “multiple writes for multiple reads”

Post a Comment