On 6/21/12 at 12:46 AM, (Frank Rueter) wrote:
When rendering multiple Write nodes with different ranges,
you will still have to figure out the correct frame range
to render yourself

something crude like this could also work:

first_render = 10000000
last_render = 0
for w in nuke.allNodes('Write'):
 if w['use_limit'].value() == 0:
  write_name = w['name'].value()
  print "%s has no range limit, using global instead" % (write_name)
  first_write = nuke.root().knob('first_frame').value()
  last_write = nuke.root().knob('last_frame').value()
 else:
  first_write = w['first'].value()
  last_write = w['last'].value()
 if first_write < first_render:
  first_render = first_write
 if last_write > last_render:
  last_render = last_write
print "all write nodes are in the range %s to %s" % (first_render, last_render)

i guess a bit more elegant would be to make some kind of a list (edit: just saw diogo did that ;)

chris

_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to