Blender V5.3
keyframing.cc File Reference
#include <cstdio>
#include <fmt/format.h>
#include "MEM_guardedalloc.h"
#include "BLI_math_base_c.hh"
#include "BLI_string.hh"
#include "BLT_translation.hh"
#include "DNA_ID.h"
#include "DNA_anim_types.h"
#include "DNA_armature_types.h"
#include "DNA_scene_types.h"
#include "DNA_sequence_types.h"
#include "BKE_action.hh"
#include "BKE_anim_data.hh"
#include "BKE_animsys.hh"
#include "BKE_armature.hh"
#include "BKE_context.hh"
#include "BKE_fcurve.hh"
#include "BKE_global.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_nla.hh"
#include "BKE_report.hh"
#include "BKE_scene.hh"
#include "BKE_scene_context.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_anim_api.hh"
#include "ED_keyframing.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "ED_sequencer.hh"
#include "ANIM_action.hh"
#include "ANIM_action_iterators.hh"
#include "ANIM_animdata.hh"
#include "ANIM_armature.hh"
#include "ANIM_bone_collections.hh"
#include "ANIM_driver.hh"
#include "ANIM_fcurve.hh"
#include "ANIM_keyframing.hh"
#include "ANIM_keyingsets.hh"
#include "ANIM_rna.hh"
#include "SEQ_relations.hh"
#include "UI_interface.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_path.hh"
#include "RNA_prototypes.hh"
#include "anim_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static KeyingSet * blender::keyingset_get_from_op_with_error (wmOperator *op, PropertyRNA *prop, Scene *scene)
Delete Key Operator (Keying Sets)
static wmOperatorStatus blender::delete_key_using_keying_set (bContext *C, wmOperator *op, KeyingSet *ks)
static wmOperatorStatus blender::delete_key_exec (bContext *C, wmOperator *op)
Public API
void blender::update_autoflags_fcurve (FCurve *fcu, bContext *C, ReportList *reports, PointerRNA *ptr)
 Lesser Key-framing API call.
void blender::ED_keyframes_add (FCurve *fcu, int num_keys_to_add)
Insert Key Operator
static wmOperatorStatus blender::insert_key_with_keyingset (bContext *C, wmOperator *op, KeyingSet *ks)
static Vector< RNAPath > blender::construct_rna_paths (PointerRNA *ptr)
static wmOperatorStatus blender::insert_key (bContext *C, wmOperator *op)
static wmOperatorStatus blender::insert_key_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::insert_key_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus blender::keyframe_insert_with_keyingset_exec (bContext *C, wmOperator *op)
Main Keyframe Management Operators

These handle keyframes management from various spaces. They only make use of Keying Sets.

void blender::ANIM_OT_keyframe_insert (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_insert_by_name (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_delete (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_delete_by_name (wmOperatorType *ot)
Insert Key Operator (With Menu)

This operator checks if a menu should be shown for choosing the KeyingSet to use, then calls the menu if necessary before.

static wmOperatorStatus blender::insert_key_menu_invoke (bContext *C, wmOperator *op, const wmEvent *)
Keyframe Management Operators (Per-Space Menus)

These handle keyframes management from various spaces. They will handle the menus required for each space.

void blender::ANIM_OT_keyframe_insert_menu (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_clear_v3d (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_clear_vse (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_delete_vse (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_delete_v3d (wmOperatorType *ot)
Remove Animation Operator (3D View)
static bool blender::can_delete_fcurve (FCurve *fcu, Object *ob)
static wmOperatorStatus blender::clear_anim_v3d_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::clear_anim_v3d_invoke (bContext *C, wmOperator *op, const wmEvent *)
Video Sequencer Utilities
static Vector< std::string > blender::get_selected_strips_rna_paths (Vector< PointerRNA > &selection)
static void blender::invalidate_strip_caches (Vector< PointerRNA > selection, Scene *scene)
static bool blender::fcurve_belongs_to_strip (const FCurve &fcurve, const std::string &strip_path)
Remove Animation Operator (Video Sequencer)
static wmOperatorStatus blender::clear_anim_vse_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::clear_anim_vse_invoke (bContext *C, wmOperator *op, const wmEvent *)
Delete Key Utilities
static bool blender::can_delete_key (FCurve *fcu, Object *ob, ReportList *reports)
static bool blender::can_delete_scene_key (FCurve *fcu, Scene *scene, wmOperator *op)
Delete Key Operator (Video Sequencer)
static wmOperatorStatus blender::delete_key_vse_without_keying_set (bContext *C, wmOperator *op)
static wmOperatorStatus blender::delete_key_vse_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::delete_key_vse_invoke (bContext *C, wmOperator *op, const wmEvent *)
Delete Key Operator (3D View)
Note
Although this version is simpler than the more generic version for KeyingSets, it is more useful for animators working in the 3D view.
static wmOperatorStatus blender::delete_key_v3d_without_keying_set (bContext *C, wmOperator *op)
static wmOperatorStatus blender::delete_key_v3d_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::delete_key_v3d_invoke (bContext *C, wmOperator *op, const wmEvent *)
Insert Key Button Operator
static wmOperatorStatus blender::insert_key_button_exec (bContext *C, wmOperator *op)
Keyframe Management Operators for UI Buttons (RMB Menu)
void blender::ANIM_OT_keyframe_insert_button (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_delete_button (wmOperatorType *ot)
void blender::ANIM_OT_keyframe_clear_button (wmOperatorType *ot)
Delete Key Button Operator
static wmOperatorStatus blender::delete_key_button_exec (bContext *C, wmOperator *op)
Clear Key Button Operator
static wmOperatorStatus blender::clear_key_button_exec (bContext *C, wmOperator *op)
Internal Utilities
bool blender::fcurve_is_changed (PointerRNA ptr, PropertyRNA *prop, FCurve *fcu, const AnimationEvalContext *anim_eval_context)
 Lesser Keyframe Checking API call.

Keyframe Modification Utilities

enum  { blender::COMMONKEY_MODE_INSERT = 0 , blender::COMMONKEY_MODE_DELETE }
static bool blender::modify_key_op_poll (bContext *C)
static bool blender::get_selection (bContext *C, Vector< PointerRNA > *r_selection)