bpy_extras submodule (bpy_extras.anim_utils)#

bpy_extras.anim_utils.bake_action(obj, *, action, frames, bake_options: bpy_extras.anim_utils.BakeOptions)#
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.types.Action

bpy_extras.anim_utils.bake_action_objects(object_action_pairs, *, frames, bake_options: bpy_extras.anim_utils.BakeOptions)#

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, bake_options: bpy_extras.anim_utils.BakeOptions)#

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.

  • bake_options – Boolean options of what to include into the action bake.

Returns:

an action or None

Return type:

bpy.types.Action

bpy_extras.anim_utils.bake_action_objects_iter(object_action_pairs, bake_options: bpy_extras.anim_utils.BakeOptions)#

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.