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: 13fe848bdadd8a5db7e1a93c23feef3e0d91c4d5 (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)