user: Give a detailed overview of Bpy.App.Handlers: syntax, arguments, return values, common patterns.

assistant: lers. load_pre ¶ on loading a new blend file (before).Accepts one argument: the file being loaded, an empty string for the startup-file. bpy.app.handlers. object_bake_cancel ¶ on canceling a bake job; will be called in the main thread. Accepts one argument: the object data-block being baked bpy.app.handlers. object_bake_complete ¶ on completing a bake job; will be called in the main thread. Accepts one argument: the object data-block being baked bpy.app.handlers. object_bake_pre ¶ before starting a bake job. Accepts one argument: the object data-block being baked bpy.app.handlers. redo_post ¶ on loading a redo step (after) bpy.app.handlers. redo_pre ¶ on loading a redo step (before) bpy.app.handlers. render_cancel ¶ on canceling a render job. Accepts one argument: the scene data-block being rendered bpy.app.handlers. render_complete ¶ on completion of render job. Accepts one argument: the scene data-block being rendered bpy.app.handlers. render_init ¶ on initialization of a render job. Accepts one argument: the scene data-block being rendered bpy.app.handlers. render_post ¶ on render (after) bpy.app.handlers. render_pre ¶ on render (before) bpy.app.handlers. render_stats ¶ on printing render statistics. Accepts one argument: the render stats (render/saving time plus in background mode frame/used [peak] memory). bpy.app.handlers. render_write ¶ on writing a render frame (directly after the frame is written) bpy.app.handlers. save_post ¶ on saving a blend file (after). Accepts one argument: the file being saved, an empty string for the startup-file. bpy.app.handlers. save_post_fail ¶ on failure to save a blend file (after). Accepts one argument: the file being saved, an empty string for the startup-file. bpy.app.handlers. save_pre ¶ on saving a blend file (before). Accepts one argument: the file being saved, an empty string for the startup-file. bpy.app.handlers. translation_update_post ¶ on translation settings update bpy.app.handlers. undo_post ¶ on loading an undo step (after) bpy.app.handlers. undo_pre ¶ on loading an undo step (before) bpy.app.handlers. version_update ¶ on ending the versioning code bpy.app.handlers. xr_session_start_pre ¶ on starting an xr session (before) bpy.app.handlers. persistent ¶ Function decorator for callback functions not to be removed when loading new files Next Application Translations (bpy.app.translations) Previous Application Data (bpy.app) Copyright &#169; Blender Authors Made with Furo Report issue on this page On this page Application Handlers (bpy.app.handlers) Basic Handler Example Persistent Handler Example Note on Altering Data animation_playback_post animation_playback_pre annotation_post annotation_pre blend_import_post blend_import_pre composite_cancel composite_post composite_pre depsgraph_update_post depsgraph_update_pre frame_change_post frame_change_pre load_factory_preferences_post load_factory_startup_post load_post load_post_fail load_pre object_bake_cancel object_bake_complete object_bake_pre redo_post redo_pre render_cancel render_complete render_init render_post render_pre render_stats render_write save_post save_post_fail save_pre translation_update_post undo_post undo_pre version_update xr_session_start_pre persistent