This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/doc/python_api/examples/bpy.app.handlers.py

14 lines
253 B
Python
Raw Normal View History

"""
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)
2011-11-07 23:50:12 +00:00
bpy.app.handlers.frame_change_pre.append(my_handler)