|
Blender V4.5
|
#include "MEM_guardedalloc.h"#include "BLI_math_color.h"#include "BLI_string.h"#include "BLT_translation.hh"#include "DNA_anim_types.h"#include "DNA_modifier_types.h"#include "DNA_node_types.h"#include "BKE_node.hh"#include "BKE_node_runtime.hh"#include "RNA_access.hh"#include "RNA_path.hh"#include "RNA_prototypes.hh"#include "ED_anim_api.hh"#include "ANIM_action.hh"#include <fmt/format.h>#include <cstring>Go to the source code of this file.
Macros | |
| #define | HSV_BANDWIDTH 0.3f |
Functions | |
| std::optional< int > | getname_anim_fcurve (char *name, ID *id, FCurve *fcu) |
| std::string | getname_anim_fcurve_for_slot (Main &bmain, const blender::animrig::Slot &slot, FCurve &fcurve) |
| void | getcolor_fcurve_rainbow (int cur, int tot, float out[3]) |
| #define HSV_BANDWIDTH 0.3f |
Definition at line 307 of file anim_ipo_utils.cc.
Referenced by getcolor_fcurve_rainbow().
| void getcolor_fcurve_rainbow | ( | int | cur, |
| int | tot, | ||
| float | out[3] ) |
Automatically determine a color for the nth F-Curve.
Definition at line 311 of file anim_ipo_utils.cc.
References fmod(), HSV_BANDWIDTH, hsv_to_rgb_v(), and out.
Referenced by graph_refresh_fcurve_colors().
Get icon + name for channel-list displays for F-Curve.
Write into "name" buffer, the name of the property (retrieved using RNA from the curve's settings), and return the icon used for the struct that this property refers to
Definition at line 45 of file anim_ipo_utils.cc.
References FCurve::array_index, BLI_assert, BLI_assert_unreachable, BLI_snprintf(), BLI_sprintfN(), BLI_str_quoted_substr(), BLI_strncpy(), FCURVE_DISABLED, FCurve::flag, GS, ID_NT, ID_SCE, input, MEM_freeN(), bNodeSocket::name, StructRNA::name, blender::bke::node_find_interface_input_by_identifier(), blender::bke::node_find_node(), NodesModifierData::node_group, ptr, RNA_id_pointer_create(), FCurve::rna_path, RNA_path_resolve_property(), RNA_property_array_check(), RNA_property_array_item_char(), RNA_property_string_get_alloc(), RNA_property_ui_name(), RNA_struct_is_a(), RNA_struct_name_property(), RNA_struct_ui_icon(), RNA_struct_ui_name(), RPT_, and SNPRINTF.
Referenced by acf_fcurve_name(), getname_anim_fcurve_for_slot(), graph_draw_driven_property_panel(), and graph_panel_properties().
| std::string getname_anim_fcurve_for_slot | ( | Main & | bmain, |
| const blender::animrig::Slot & | slot, | ||
| FCurve & | fcurve ) |
Get the name of an F-Curve that's animating a specific slot.
This function iterates the Slot's users to find an ID that allows it to resolve its RNA path.
Definition at line 231 of file anim_ipo_utils.cc.
References FCurve::array_index, FCURVE_DISABLED, blender::StringRefBase::find(), FCurve::flag, getname_anim_fcurve(), blender::animrig::Slot::has_idtype(), StructRNA::icon, ID_code_to_RNA_type(), ActionSlot::idtype, Span< T >::is_empty(), blender::StringRefBase::not_found, FCurve::rna_path, RNA_property_array_check(), RNA_property_array_item_char(), RNA_property_ui_name(), RNA_struct_type_find_property(), and blender::animrig::Slot::users().
Referenced by acf_fcurve_name().