Blender V5.3
graph_edit.cc File Reference
#include <cfloat>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_fileops.hh"
#include "BLI_listbase.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_utildefines.hh"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "BLT_translation.hh"
#include "BKE_animsys.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_global.hh"
#include "BKE_nla.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "UI_interface_icons.hh"
#include "UI_view2d.hh"
#include "ANIM_animdata.hh"
#include "ANIM_fcurve.hh"
#include "ANIM_keyframing.hh"
#include "ED_anim_api.hh"
#include "ED_keyframes_edit.hh"
#include "ED_keyframing.hh"
#include "ED_markers.hh"
#include "ED_screen.hh"
#include "ED_transform.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "graph_intern.hh"

Go to the source code of this file.

Classes

struct  blender::tEulerFilter

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Click-Insert Keyframes Operator
static wmOperatorStatus blender::graphkeys_click_insert_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::graphkeys_click_insert_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::GRAPH_OT_click_insert (wmOperatorType *ot)
Copy/Paste Keyframes Operator
Note
the back-end code for this is shared with the dope-sheet editor.
static bool blender::copy_graph_keys (bAnimContext *ac)
static eKeyPasteError blender::paste_graph_keys (bAnimContext *ac, const eKeyPasteOffset offset_mode, const eKeyPasteValueOffset value_offset_mode, const eKeyMergeMode merge_mode, const bool flip)
static wmOperatorStatus blender::graphkeys_copy_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_copy (wmOperatorType *ot)
static wmOperatorStatus blender::graphkeys_paste_exec (bContext *C, wmOperator *op)
static std::string blender::graphkeys_paste_get_description (bContext *, wmOperatorType *, PointerRNA *ptr)
void blender::GRAPH_OT_paste (wmOperatorType *ot)
Duplicate Keyframes Operator
static bool blender::duplicate_graph_keys (bAnimContext *ac)
static wmOperatorStatus blender::graphkeys_duplicate_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_duplicate (wmOperatorType *ot)
Delete Keyframes Operator
static bool blender::delete_graph_keys (bAnimContext *ac)
static wmOperatorStatus blender::graphkeys_delete_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::graphkeys_delete_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::GRAPH_OT_delete (wmOperatorType *ot)
Clean Keyframes Operator
static void blender::clean_graph_keys (bAnimContext *ac, float thresh, bool clean_chan)
static wmOperatorStatus blender::graphkeys_clean_exec (bContext *C, wmOperator *op)
static std::string blender::graphkeys_clean_get_description (bContext *, wmOperatorType *, PointerRNA *ptr)
void blender::GRAPH_OT_clean (wmOperatorType *ot)
Keys to Samples Operator

This operator bakes the data of the selected F-Curves to F-Points.

static void blender::convert_keys_to_samples (bAnimContext *ac, int start, int end)
static wmOperatorStatus blender::graphkeys_keys_to_samples_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_keys_to_samples (wmOperatorType *ot)
Samples to Keys Operator

This operator converts the data of the selected F-Points to F-Curves.

static void blender::convert_samples_to_keys (bAnimContext *ac, int start, int end)
static wmOperatorStatus blender::graphkeys_samples_to_keys_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_samples_to_keys (wmOperatorType *ot)
static wmOperatorStatus blender::graphkeys_sound_to_samples_exec (bContext *, wmOperator *op)
static wmOperatorStatus blender::graphkeys_sound_to_samples_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::GRAPH_OT_sound_to_samples (wmOperatorType *ot)
Sample Keyframes Operator

This operator 'bakes' the values of the curve into new keyframes between pairs of selected keyframes. It is useful for creating keyframes for tweaking overlap.

static void blender::bake_graph_keys (bAnimContext *ac)
static wmOperatorStatus blender::graphkeys_bake_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_bake_keys (wmOperatorType *ot)
Set Interpolation-Type Operator
static void blender::setipo_graph_keys (bAnimContext *ac, short mode)
static wmOperatorStatus blender::graphkeys_ipo_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_interpolation_type (wmOperatorType *ot)
Set Easing Operator
static void blender::seteasing_graph_keys (bAnimContext *ac, short mode)
static wmOperatorStatus blender::graphkeys_easing_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_easing_type (wmOperatorType *ot)
Set Handle-Type Operator
static void blender::sethandles_graph_keys (bAnimContext *ac, short mode)
static wmOperatorStatus blender::graphkeys_handletype_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_handle_type (wmOperatorType *ot)
'Euler Filter' Operator

Euler filter tools (as seen in Maya), are necessary for working with 'baked' rotation curves (with Euler rotations). The main purpose of such tools is to resolve any discontinuities that may arise in the curves due to the clamping of values to -180 degrees to 180 degrees.

static bool blender::keyframe_time_differs (BezTriple *keyframes[3])
static ListBaseT< tEulerFilter > blender::euler_filter_group_channels (const ListBaseT< bAnimListElem > *anim_data, ReportList *reports, int *r_num_groups)
static bool blender::euler_filter_multi_channel (tEulerFilter *euf, ReportList *reports)
static bool blender::euler_filter_single_channel (FCurve *fcu)
static void blender::euler_filter_perform_filter (ListBaseT< tEulerFilter > *eulers, ReportList *reports, int *r_curves_filtered, int *r_curves_seen)
static wmOperatorStatus blender::graphkeys_euler_filter_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_euler_filter (wmOperatorType *ot)
Jump to Selected Frames Operator
static bool blender::graphkeys_framejump_poll (bContext *C)
static KeyframeEditData blender::sum_selected_keyframes (bAnimContext *ac)
static wmOperatorStatus blender::graphkeys_framejump_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_frame_jump (wmOperatorType *ot)
Keyframe Jump Operator (Deprecated)
static wmOperatorStatus blender::keyframe_jump_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_keyframe_jump (wmOperatorType *ot)
Snap Cursor Value Operator
static wmOperatorStatus blender::graphkeys_snap_cursor_value_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_snap_cursor_value (wmOperatorType *ot)
Smooth Keyframes Operator
static wmOperatorStatus blender::graphkeys_smooth_exec (bContext *C, wmOperator *)
void blender::GRAPH_OT_smooth (wmOperatorType *ot)
Add F-Modifier Operator
static const EnumPropertyItem * blender::graph_fmodifier_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static wmOperatorStatus blender::graph_fmodifier_add_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_fmodifier_add (wmOperatorType *ot)
Copy F-Modifiers Operator
static wmOperatorStatus blender::graph_fmodifier_copy_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_fmodifier_copy (wmOperatorType *ot)
Paste F-Modifiers Operator
static wmOperatorStatus blender::graph_fmodifier_paste_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_fmodifier_paste (wmOperatorType *ot)
Copy Driver Variables Operator
static wmOperatorStatus blender::graph_driver_vars_copy_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_driver_variables_copy (wmOperatorType *ot)
Paste Driver Variables Operator
static wmOperatorStatus blender::graph_driver_vars_paste_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_driver_variables_paste (wmOperatorType *ot)
Delete Invalid Drivers Operator
static wmOperatorStatus blender::graph_driver_delete_invalid_exec (bContext *C, wmOperator *op)
static bool blender::graph_driver_delete_invalid_poll (bContext *C)
void blender::GRAPH_OT_driver_delete_invalid (wmOperatorType *ot)

Set Extrapolation-Type Operator

#define MAKE_CYCLIC_EXPO   -1
#define CLEAR_CYCLIC_EXPO   -2
static const EnumPropertyItem blender::prop_graphkeys_expo_types []
static void blender::setexpo_graph_keys (bAnimContext *ac, short mode)
static wmOperatorStatus blender::graphkeys_expo_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_extrapolation_type (wmOperatorType *ot)

Insert Keyframes Operator

enum  blender::eGraphKeys_InsertKey_Types { blender::GRAPHKEYS_INSERTKEY_ALL = (1 << 0) , blender::GRAPHKEYS_INSERTKEY_SEL = (1 << 1) , blender::GRAPHKEYS_INSERTKEY_CURSOR = (1 << 2) , blender::GRAPHKEYS_INSERTKEY_ACTIVE = (1 << 3) }
static const EnumPropertyItem blender::prop_graphkeys_insertkey_types []
static void blender::insert_graph_keys (bAnimContext *ac, eGraphKeys_InsertKey_Types mode)
static wmOperatorStatus blender::graphkeys_insertkey_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_keyframe_insert (wmOperatorType *ot)

Delete F-Modifiers Operator

enum class  blender::RemovalMode { blender::ALL = 0 , blender::FIRST = 1 , blender::TYPE = 2 }
static wmOperatorStatus blender::graph_fmodifier_delete_exec (bContext *C, wmOperator *op)
static void blender::fmodifier_delete_ui (bContext *, wmOperator *op)
void blender::GRAPH_OT_fmodifier_delete (wmOperatorType *ot)

Snap Keyframes Operator

static const EnumPropertyItem blender::prop_graphkeys_snap_types []
static void blender::snap_graph_keys (bAnimContext *ac, short mode)
static wmOperatorStatus blender::graphkeys_snap_exec (bContext *C, wmOperator *op)
static bool blender::graph_has_selected_control_points (bContext *C)
static wmOperatorStatus blender::graphkeys_selected_control_points_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::GRAPH_OT_snap (wmOperatorType *ot)

Equalize Handles Operator

static const EnumPropertyItem blender::prop_graphkeys_equalize_handles_sides []
static void blender::equalize_graph_keys (bAnimContext *ac, int mode, float handle_length, bool flatten)
static wmOperatorStatus blender::graphkeys_equalize_handles_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_equalize_handles (wmOperatorType *ot)

Mirror Keyframes Operator

static const EnumPropertyItem blender::prop_graphkeys_mirror_types []
static void blender::mirror_graph_keys (bAnimContext *ac, short mode)
static wmOperatorStatus blender::graphkeys_mirror_exec (bContext *C, wmOperator *op)
void blender::GRAPH_OT_mirror (wmOperatorType *ot)

Detailed Description

Insert duplicate and bake keyframes.

Definition in file graph_edit.cc.

Macro Definition Documentation

◆ CLEAR_CYCLIC_EXPO

#define CLEAR_CYCLIC_EXPO   -2

Definition at line 1415 of file graph_edit.cc.

◆ MAKE_CYCLIC_EXPO

#define MAKE_CYCLIC_EXPO   -1

Definition at line 1414 of file graph_edit.cc.