diff options
Diffstat (limited to 'doc/python_api/examples/bpy.app.handlers.py')
-rw-r--r-- | doc/python_api/examples/bpy.app.handlers.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/python_api/examples/bpy.app.handlers.py b/doc/python_api/examples/bpy.app.handlers.py new file mode 100644 index 00000000000..7c176063b7c --- /dev/null +++ b/doc/python_api/examples/bpy.app.handlers.py @@ -0,0 +1,12 @@ +""" +Basic Handler Example ++++++++++++++++++++++ +This script shows the most simple example of adding a handler. +""" + +import bpy + +def my_handler(scene): + print("Frame Change", scene.frame_current) + +bpy.app.handlers.frame_change_pre.append(my_handler)
\ No newline at end of file |