"Frame 2 (2 of 100)" etc is always output (although your example is useful as it would allow for easier-to-parse output)

..but, it doesn't show the progress of a single frame (e.g if you a one-frame render which takes several minutes, there's no progress information printed except "finished!")

On 16/10/13 02:04, Kevin Wheatley wrote:
what about something like this:

def pre_all_frames_rendered():
   nuke.tprint("Starting rendering time %d" % nuke.frame())

def post_all_frames_rendered():
   nuke.tprint("Finished rendering time %d" % nuke.frame())

def setup_during_init():
   if (not(nuke.env["gui"]) and ("addBeforeFrameRender" in dir(nuke))):
     nuke.addBeforeFrameRender(pre_all_frames_rendered)
   if (not(nuke.env["gui"]) and ("addAfterFrameRender" in dir(nuke)):
     nuke.addAfterFrameRender(post_all_frames_rendered)

suitably adapted to your queue needs.

Kevin

--
ben dickson
2D TD | ben.dick...@rsp.com.au
rising sun pictures | www.rsp.com.au
_______________________________________________
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

Reply via email to