Blender V5.3
BKE_action.hh File Reference

Blender kernel action and pose functionality. More...

#include "BLI_compiler_attrs.hh"
#include "BLI_function_ref.hh"
#include "BLI_span.hh"
#include "BKE_pose.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::animrig
namespace  blender::bke

Typedefs

using blender::bke::FoundFCurveCallback = FunctionRef<void(FCurve *fcurve, const char *bone_name)>
using blender::bke::FoundFCurveCallbackConst = FunctionRef<void(const FCurve *fcurve, const char *bone_name)>

Functions

bAction * blender::BKE_action_add (Main *bmain, const char name[])
void blender::action_group_colors_sync (bActionGroup *grp)
void blender::action_group_colors_set (bActionGroup *grp, const BoneColor *color)
void blender::action_group_colors_set_from_posebone (bActionGroup *grp, bke::PChanBoneConst pchanbone)
void blender::BKE_pose_channel_free (bPoseChannel *pchan) ATTR_NONNULL(1)
void blender::BKE_pose_channel_free_ex (bPoseChannel *pchan, bool do_id_user) ATTR_NONNULL(1)
void blender::BKE_pose_channel_runtime_reset (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_runtime_reset_on_copy (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_runtime_free (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channel_free_bbone_cache (bPoseChannel_Runtime *runtime) ATTR_NONNULL(1)
void blender::BKE_pose_channels_free (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_channels_free_ex (bPose *pose, bool do_id_user) ATTR_NONNULL(1)
void blender::BKE_pose_channels_hash_ensure (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_channels_hash_free (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_channels_remove (Object *ob, bool(*filter_fn)(const char *bone_name, void *user_data), void *user_data) ATTR_NONNULL(1
void void blender::BKE_pose_free_data_ex (bPose *pose, bool do_id_user) ATTR_NONNULL(1)
void blender::BKE_pose_free_data (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_free (bPose *pose)
void blender::BKE_pose_free_ex (bPose *pose, bool do_id_user)
void blender::BKE_pose_copy_data_ex (bPose **dst, const bPose *src, int flag, bool copy_constraints)
void blender::BKE_pose_copy_data (bPose **dst, const bPose *src, bool copy_constraints)
void blender::BKE_pose_channel_copy_data (bPoseChannel *pchan, const bPoseChannel *pchan_from)
void blender::BKE_pose_channel_session_uid_generate (bPoseChannel *pchan)
bPoseChannel * blender::BKE_pose_channel_find_name (const bPose *pose, const char *name)
bool blender::BKE_pose_is_bonecoll_visible (const bArmature *arm, const bPoseChannel *pchan) ATTR_WARN_UNUSED_RESULT
bPoseChannel * blender::BKE_pose_channel_active (Object *ob, bool check_bonecoll)
bPoseChannel * blender::BKE_pose_channel_active_if_bonecoll_visible (Object *ob) ATTR_WARN_UNUSED_RESULT
bPoseChannel * blender::BKE_pose_channel_active_or_first_selected (Object *ob) ATTR_WARN_UNUSED_RESULT
bPoseChannel * blender::BKE_pose_channel_ensure (bPose *pose, const char *name) ATTR_NONNULL(2)
bPoseChannel * blender::BKE_pose_channel_get_mirrored (const bPose *pose, const char *name) ATTR_WARN_UNUSED_RESULT
void blender::BKE_pose_check_uids_unique_and_report (const bPose *pose)
bool blender::BKE_pose_channels_is_valid (const bPose *pose) ATTR_WARN_UNUSED_RESULT
void blender::BKE_pose_update_constraint_flags (Object &pose_ob)
void blender::BKE_pose_tag_update_constraint_flags (bPose *pose) ATTR_NONNULL(1)
const char * blender::BKE_pose_ikparam_get_name (bPose *pose) ATTR_WARN_UNUSED_RESULT
void blender::BKE_pose_ikparam_init (bPose *pose) ATTR_NONNULL(1)
void blender::BKE_pose_itasc_init (bItasc *itasc)
bool blender::BKE_pose_channel_in_IK_chain (Object *ob, bPoseChannel *pchan)
void blender::BKE_pose_channel_transform_location (const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_space_pivot[3])
void blender::BKE_pose_channel_transform_orientation (const bArmature *arm, const bPoseChannel *pose_bone, float r_pose_orientation[3][3])
bActionGroup * blender::BKE_pose_add_group (bPose *pose, const char *name) ATTR_NONNULL(1)
void blender::BKE_pose_remove_group (bPose *pose, bActionGroup *grp, int index) ATTR_NONNULL(1)
void blender::BKE_pose_remove_group_index (bPose *pose, int index) ATTR_NONNULL(1)
void blender::what_does_obaction (Object *ob, Object *workob, bPose *pose, bAction *act, int32_t action_slot_handle, const char groupname[], const AnimationEvalContext *anim_eval_context) ATTR_NONNULL(1
void void blender::BKE_pose_copy_pchan_result (bPoseChannel *pchanto, const bPoseChannel *pchanfrom) ATTR_NONNULL(1
void void bool blender::BKE_pose_copy_result (bPose *to, bPose *from)
void blender::BKE_pose_rest (Object &pose_ob, bool selected_bones_only)
void blender::BKE_pose_tag_recalc (Main *bmain, bPose *pose) ATTR_NONNULL(1
void void blender::BKE_pose_blend_write (BlendWriter *writer, bPose *pose) ATTR_NONNULL(1
void void void blender::BKE_pose_blend_read_data (BlendDataReader *reader, ID *id_owner, bPose *pose) ATTR_NONNULL(1
void void void void blender::BKE_pose_blend_read_after_liblink (BlendLibReader *reader, Object *ob, bPose *pose) ATTR_NONNULL(1
void blender::bke::BKE_action_find_fcurves_with_bones (bAction *action, animrig::slot_handle_t slot_handle, FoundFCurveCallback callback)
void blender::bke::BKE_action_find_fcurves_with_bones (const bAction *action, animrig::slot_handle_t slot_handle, FoundFCurveCallbackConst callback)
Flip the Action (Armature/Pose Objects)

This flips the action using the rest pose (not the evaluated pose).

Details:

  • Key-frames are modified in-place, creating new key-frames is not yet supported. That could be useful if a user for example only has 2x rotation channels set. In practice users typically keyframe all rotation channels or none.
  • F-Curve modifiers are disabled for evaluation, so the values written back to the keyframes don't include modifier offsets.
  • Sub-frame key-frames aren't supported, this could be added if needed without much trouble.
  • F-Curves must have a #FCurve.bezt array (sampled curves aren't supported).
void void void void void blender::BKE_action_flip_with_pose (bAction *act, Span< Object * > objects) ATTR_NONNULL(1)

Detailed Description

Blender kernel action and pose functionality.

Definition in file BKE_action.hh.