Is there something similar to calling self.report
inside an Operator, but for use without Operators (i.e. from bpy.app.handlers
functions)?
-
$\begingroup$ can you give an example of how you would want to use this? - I know its not necessary to answer the question but it can be helpful still. $\endgroup$ – ideasman42 Jul 15 '13 at 0:38
-
$\begingroup$ Added to TODO, may be available in 2.69, wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/… $\endgroup$ – ideasman42 Jul 15 '13 at 5:19
-
$\begingroup$ I need it to report errors in the header, instead of having them go on the console. $\endgroup$ – Lord Spectre Jul 15 '13 at 14:35
Needed this as well and added a function to the RNA Window Manager API, that can be accessed via bpy.context.window_manager.report()
. Basically it does almost the same thing, with the exception that it uses the Window Manager ReportList
.
I don't know if it is ok to be accepted in the official git repo, awaiting review:
Note that i am not actually using this now as i had to pass back to the calling operator in any case of error anyway via custom exception, to be able to cancel the operator properly.