- added docs and examples for bpy.app.handlers

- correct error in own last commit for BKE_screen_find_big_area()
This commit is contained in:
Campbell Barton
2011-11-04 04:27:46 +00:00
parent 7e9bc22925
commit 87cd81b162
6 changed files with 153 additions and 53 deletions

View File

@@ -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)