- added docs and examples for bpy.app.handlers
[blender.git] / doc / python_api / examples / bpy.app.handlers.py
1 """
2 Basic Handler Example
3 +++++++++++++++++++++
4 This script shows the most simple example of adding a handler.
5 """
6
7 import bpy
8
9 def my_handler(scene):
10    print("Frame Change", scene.frame_current)
11
12 bpy.app.handlers.frame_change_pre.append(my_handler)