2011-11-04 04:27:46 +00:00
|
|
|
"""
|
|
|
|
Basic Handler Example
|
|
|
|
+++++++++++++++++++++
|
2015-09-08 14:30:05 +10:00
|
|
|
|
2011-11-04 04:27:46 +00:00
|
|
|
This script shows the most simple example of adding a handler.
|
|
|
|
"""
|
|
|
|
|
|
|
|
import bpy
|
|
|
|
|
2011-11-08 01:32:34 +00:00
|
|
|
|
2011-11-04 04:27:46 +00:00
|
|
|
def my_handler(scene):
|
2011-11-08 01:32:34 +00:00
|
|
|
print("Frame Change", scene.frame_current)
|
2011-11-04 04:27:46 +00:00
|
|
|
|
2018-06-26 19:41:37 +02:00
|
|
|
|
2011-11-07 23:50:12 +00:00
|
|
|
bpy.app.handlers.frame_change_pre.append(my_handler)
|