Blender V5.0
ANIM_pose.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "ANIM_action.hh"
14#include "BLI_span.hh"
15
17struct Object;
18struct bAction;
19
20namespace blender::animrig {
21
26 bAction *action,
27 slot_handle_t slot_handle,
28 const AnimationEvalContext *anim_eval_context);
29
35 bAction *action,
36 slot_handle_t slot_handle,
37 const AnimationEvalContext *anim_eval_context,
38 float blend_factor);
39
44 bAction *action,
45 slot_handle_t slot_handle,
46 const AnimationEvalContext *anim_eval_context,
47 float blend_factor);
48
54 Action &pose_action,
55 const AnimationEvalContext *anim_eval_context,
56 float blend_factor);
62
69Slot &get_best_pose_slot_for_id(const ID &id, Action &pose_data);
70} // namespace blender::animrig
Functions and classes to work with Actions.
void pose_apply_action_all_bones(Object *ob, bAction *action, slot_handle_t slot_handle, const AnimationEvalContext *anim_eval_context)
void pose_apply_action(blender::Span< Object * > objects, Action &pose_action, const AnimationEvalContext *anim_eval_context, float blend_factor)
void pose_apply_action_blend_all_bones(Object *ob, bAction *action, slot_handle_t slot_handle, const AnimationEvalContext *anim_eval_context, float blend_factor)
Definition pose.cc:113
decltype(::ActionSlot::handle) slot_handle_t
bool any_bone_selected(blender::Span< const Object * > objects)
Slot & get_best_pose_slot_for_id(const ID &id, Action &pose_data)
Definition pose.cc:160
void pose_apply_action_blend(Object *ob, bAction *action, slot_handle_t slot_handle, const AnimationEvalContext *anim_eval_context, float blend_factor)
Definition DNA_ID.h:414