1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
bpy.data.objects['objectName'].animation_data.action.fcurves
bpy.data.actions['curveGroupName'].fcurves['curveName']
len(boy.context.object.animation_data.action.fcurves) #获取当前物体曲线数量
bpy.context.object.animation_data.action.fcurves[4].mute = False #让曲线是否生效
bpy.context.object.animation_data.action.fcurves[4].lock = False #锁定曲线
bpy.context.object.animation_data.action.fcurves[4].select = True #选择该曲线
bpy.ops.graph.hide(unselected=True) #隐藏未选中的
bpy.data.window_managers['WinMan'].(null) = True
#插入关键帧
继承函数:bpy_struct.keyframe_insert
(继承bpy_struct类)
参数:
data_path 数据路径,例如:location位置
index 索引 例如:位置xyz(0,1,2)
frame 帧数 默认为当前,时间轴选中帧
group 分组 Object Transforms(物体-变换)
bl_info = {
"name": "BL_ammiel_v0_1",
"description": "BL_ammiel_v0_1",
"author": ".",
"version": (0, 0, 1),
"blender": (2, 80, 0),
"location": "Everywhere",
"category": " Blender Box"
}
actions 动作
armatures 骨架
curves 曲线
bpy.ops.graph
|