Page MenuHome

bpy.app.handlers.render_stats doesn't appear to work
Closed, ResolvedPublic

Description

Using the example in the Blender wiki (http://wiki.blender.org/index.php/Dev:Ref/Release_Notes/2.60/Python#Callbacks), the expected results are that "Thanks for calling!" should print after the stats get printed. Currently, nothing happens. The stats get printed without the appended text and Blender proceeds normally.

Details

Type
Bug

Event Timeline

It seems to work when running blender in background mode, and that was the original purpose of this, for render farm clients to report progress. I've done one tweak in svn now, to also call this after it prints "Saved: /tmp..", which it didn't do before.

Further I'm not sure what you are intending to use this for. It still doesn't get called now when it draw render stats in the user interface only, but I'm not sure if that would be expected behavior.

No activity in more than week. Current behavior seems logical for me and i'm not sure it'll be good idea to call a callback on every statistics draw.
Will assume this issue resolved. Probably callbacks might be enhanced further but wouldn't consider this is a bug.
Thanks for the report and patch! :)

Sergey Sharybin (sergey) closed this task as Resolved.Mar 13 2012, 12:52 PM