2022/8/9
增加3条
-
增加 blender 清理关键帧/清理通道 C 源码 位置
用于纯python脚本完成关键帧清理的参考。因为blender没有导出能用的关键帧清理函数接口。
https://github.com/blender/blender/blob/594f47ecd2d5367ca936cf6fc6ec8168c2b360d0/source/blender/editors/animation/keyframes_general.c#L190 -
立刻更新场景的另一个方法,执行 bpy.context.view_layer.update() 。效果等同 scene.frame_set(xxx)
-
action.fcurve.keypoints.remove 使用此函数时,如果不需要立即evaluate,记得增加设定关键字 fast=True。可以大幅度增加帧删除的速度。
例如:bpy.context.active_object.animation_data.action.fcurves[0].keyframe_points.remove(kp, fast=True)