bpy_extras submodule (bpy_extras.anim_utils)#
- bpy_extras.anim_utils.bake_action(obj, *, action, frames, bake_options)#
- Parameters:
obj (
bpy.types.Object
) – Object to bake.action (
bpy.types.Action
| None) – An action to bake the data into, or None for a new action to be created.frames (int) – Frames to bake.
bake_options (
anim_utils.BakeOptions
) – Options for baking.
- Returns:
Action or None.
- Return type:
bpy.types.Action
| None
- bpy_extras.anim_utils.bake_action_objects(object_action_pairs, *, frames, bake_options)#
A version of
bake_action_objects_iter()
that takes frames and returns the output.- Parameters:
frames (iterable of int) – Frames to bake.
bake_options (
anim_utils.BakeOptions
) – Options for baking.
- Returns:
A sequence of Action or None types (aligned with
object_action_pairs
)- Return type:
Sequence[
bpy.types.Action
]
- bpy_extras.anim_utils.bake_action_iter(obj, *, action, bake_options)#
An coroutine that bakes action for a single object.
- Parameters:
obj (
bpy.types.Object
) – Object to bake.action (
bpy.types.Action
| None) – An action to bake the data into, or None for a new action to be created.bake_options (
anim_utils.BakeOptions
) – Boolean options of what to include into the action bake.
- Returns:
an action or None
- Return type:
- bpy_extras.anim_utils.bake_action_objects_iter(object_action_pairs, bake_options)#
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.bake_options (
anim_utils.BakeOptions
) – Options for baking.