Blender V5.3
ANIM_rna.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#include "BLI_array.hh"
12#include "BLI_string_ref.hh"
13#include "BLI_vector.hh"
14#include "DNA_action_types.h"
15#include "RNA_types.hh"
16
17#include "RNA_path.hh"
18
19namespace blender {
20
21struct PointerRNA;
22struct PropertyRNA;
23
24namespace animrig {
25
27Vector<float> get_rna_values(PointerRNA *ptr, PropertyRNA *prop);
28
30StringRefNull get_rotation_mode_path(eRotationModes rotation_mode);
31
35std::string get_pose_bone_rna_path(const bPoseChannel &pose_bone);
36
43std::optional<std::string> pose_bone_name_from_rna_path(ParsedRNAPathRef rna_path);
44
56std::optional<eRotationModes> get_rotation_mode_from_path(ParsedRNAPathRef rna_path);
57
64std::optional<eRotationModes> get_rotation_mode_from_rna_pointer(const PointerRNA &ptr);
65
72
77Vector<RNAPath> get_keyable_id_property_paths(const PointerRNA &ptr);
78
86Array<float> rna_property_get_as_float(PointerRNA &ptr, PropertyRNA &prop);
87
95void rna_property_set_as_float(PointerRNA &ptr, PropertyRNA &prop, Span<float> values);
96
97} // namespace animrig
98} // namespace blender
std::optional< eRotationModes > get_rotation_mode_from_path(ParsedRNAPathRef rna_path)
Definition anim_rna.cc:121
StringRefNull get_rotation_mode_path(eRotationModes rotation_mode)
Definition anim_rna.cc:109
bool is_rotation_path(ParsedRNAPathRef rna_path)
Definition anim_rna.cc:165
void rna_property_set_as_float(PointerRNA &ptr, PropertyRNA &prop, Span< float > values)
Definition anim_rna.cc:301
Vector< RNAPath > get_keyable_id_property_paths(const PointerRNA &ptr)
Definition anim_rna.cc:202
Vector< float > get_rna_values(PointerRNA *ptr, PropertyRNA *prop)
Definition anim_rna.cc:26
std::optional< eRotationModes > get_rotation_mode_from_rna_pointer(const PointerRNA &ptr)
Definition anim_rna.cc:152
std::string get_pose_bone_rna_path(const bPoseChannel &pose_bone)
Definition anim_rna.cc:85
std::optional< std::string > pose_bone_name_from_rna_path(ParsedRNAPathRef rna_path)
Definition anim_rna.cc:92
Array< float > rna_property_get_as_float(PointerRNA &ptr, PropertyRNA &prop)
Definition anim_rna.cc:253
BMesh Iterators.
Span< rna_path::Item > ParsedRNAPathRef
Definition RNA_path.hh:113