bpy.app.handlers.py 255 B

12345678910111213141516
  1. """
  2. Basic Handler Example
  3. +++++++++++++++++++++
  4. This script shows the most simple example of adding a handler.
  5. """
  6. import bpy
  7. def my_handler(scene):
  8. print("Frame Change", scene.frame_current)
  9. bpy.app.handlers.frame_change_pre.append(my_handler)