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