bpy_extras submodule (bpy_extras.anim_utils)
- bpy_extras.anim_utils.bake_action(obj, *, action, frames, **kwargs)
- Parameters
obj (
bpy.types.Object
) – Object to bake.action (
bpy.types.Action
or None) – An action to bake the data into, or None for a new action to be created.frames (iterable of int) – Frames to bake.
- Returns
an action or None
- Return type
- bpy_extras.anim_utils.bake_action_objects(object_action_pairs, *, frames, **kwargs)
A version of
bake_action_objects_iter()
that takes frames and returns the output.- Parameters
frames (iterable of int) – Frames to bake.
- Returns
A sequence of Action or None types (aligned with object_action_pairs)
- Return type
sequence of
bpy.types.Action
- bpy_extras.anim_utils.bake_action_iter(obj, *, action, only_selected=False, do_pose=True, do_object=True, do_visual_keying=True, do_constraint_clear=False, do_parents_clear=False, do_clean=False)
An coroutine that bakes action for a single object.
- Parameters
obj (
bpy.types.Object
) – Object to bake.action (
bpy.types.Action
or None) – An action to bake the data into, or None for a new action to be created.only_selected (bool) – Only bake selected bones.
do_pose (bool) – Bake pose channels.
do_object (bool) – Bake objects.
do_visual_keying (bool) – Use the final transformations for baking (‘visual keying’)
do_constraint_clear (bool) – Remove constraints after baking.
do_parents_clear (bool) – Unparent after baking objects.
do_clean (bool) – Remove redundant keyframes after baking.
- Returns
an action or None
- Return type
- bpy_extras.anim_utils.bake_action_objects_iter(object_action_pairs, **kwargs)
An coroutine that bakes actions for multiple objects.
- Parameters
object_action_pairs (Sequence of (
bpy.types.Object
,bpy.types.Action
)) – Sequence of object action tuples, action is the destination for the baked data. When None a new action will be created.