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

bpy.types.bpy_struct.keyframe_insert.py « examples « python_api « doc - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f1f4b98b32f7c0033ed63f96de337be73683c802 (plain)
1
2
3
4
5
6
7
8
9
10
11
"""
This is the most simple example of inserting a keyframe from python.
"""

import bpy

obj = bpy.context.object

# set the keyframe at frame 1
obj.location = 3.0, 4.0, 10.0
obj.keyframe_insert(data_path="location", frame=1)