Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bpy.app.handlers.py « examples « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 02b00bf2fbc1c72fef0026c2ac039ce781dc9b5d (plain)
1
2
3
4
5
6
7
8
9
10
11
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)