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: 57b209e15f02f6685e188dfebb3c5f4571d5135c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
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)