can't include titles in function examples.
[blender.git] / doc / python_api / examples / bpy.types.bpy_struct.keyframe_insert.py
1 """
2 This is the most simple example of inserting a keyframe from python.
3 """
4
5 import bpy
6
7 obj = bpy.context.object
8
9 # set the keyframe at frame 1
10 obj.location = 3.0, 4.0, 10.0
11 obj.keyframe_insert(data_path="location", frame=1)