Blender V5.0
keyingsets.cc File Reference
#include <cfloat>
#include <cstddef>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_anim_types.h"
#include "DNA_scene_types.h"
#include "BLI_listbase.h"
#include "BKE_animsys.h"
#include "BKE_context.hh"
#include "BKE_report.hh"
#include "ANIM_keyframing.hh"
#include "ANIM_keyingsets.hh"
#include "ED_keyframing.hh"
#include "ED_screen.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 "anim_intern.hh"

Go to the source code of this file.

Functions

static bool keyingset_poll_default_add (bContext *C)
static bool keyingset_poll_active_edit (bContext *C)
static bool keyingset_poll_activePath_edit (bContext *C)
static wmOperatorStatus add_default_keyingset_exec (bContext *C, wmOperator *)
void ANIM_OT_keying_set_add (wmOperatorType *ot)
static wmOperatorStatus remove_active_keyingset_exec (bContext *C, wmOperator *op)
void ANIM_OT_keying_set_remove (wmOperatorType *ot)
static wmOperatorStatus add_empty_ks_path_exec (bContext *C, wmOperator *op)
void ANIM_OT_keying_set_path_add (wmOperatorType *ot)
static wmOperatorStatus remove_active_ks_path_exec (bContext *C, wmOperator *op)
void ANIM_OT_keying_set_path_remove (wmOperatorType *ot)
static wmOperatorStatus add_keyingset_button_exec (bContext *C, wmOperator *op)
void ANIM_OT_keyingset_button_add (wmOperatorType *ot)
static wmOperatorStatus remove_keyingset_button_exec (bContext *C, wmOperator *op)
void ANIM_OT_keyingset_button_remove (wmOperatorType *ot)
static wmOperatorStatus keyingset_active_menu_invoke (bContext *C, wmOperator *op, const wmEvent *)
static wmOperatorStatus keyingset_active_menu_exec (bContext *C, wmOperator *op)
static void build_keyingset_enum (bContext *C, EnumPropertyItem **item, int *totitem, bool *r_free)
static const EnumPropertyItemkeyingset_set_active_enum_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
void ANIM_OT_keying_set_active_set (wmOperatorType *ot)
int ANIM_scene_get_keyingset_index (Scene *scene, KeyingSet *keyingset)
static void anim_keyingset_visit_for_search_impl (const bContext *C, blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn, const bool use_poll)
void ANIM_keyingset_visit_for_search (const bContext *C, PointerRNA *, PropertyRNA *, const char *, blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
void ANIM_keyingset_visit_for_search_no_poll (const bContext *C, PointerRNA *, PropertyRNA *, const char *, blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn)
const EnumPropertyItemANIM_keying_sets_enum_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
KeyingSetANIM_keyingset_get_from_enum_type (Scene *scene, int type)
KeyingSetANIM_keyingset_get_from_idname (Scene *scene, const char *idname)
bool ANIM_keyingset_context_ok_poll (bContext *C, KeyingSet *keyingset)

Function Documentation

◆ add_default_keyingset_exec()

◆ add_empty_ks_path_exec()

◆ add_keyingset_button_exec()

◆ ANIM_keying_sets_enum_itemf()

const EnumPropertyItem * ANIM_keying_sets_enum_itemf ( bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
bool * r_free )

◆ ANIM_keyingset_context_ok_poll()

bool ANIM_keyingset_context_ok_poll ( bContext * C,
KeyingSet * keyingset )

◆ ANIM_keyingset_get_from_enum_type()

KeyingSet * ANIM_keyingset_get_from_enum_type ( Scene * scene,
int type )

Get the keying set from enum values generated in ANIM_keying_sets_enum_itemf.

Type is the Keying Set the user specified to use when calling the operator:

Parameters
type
  • == 0: use scene's active Keying Set.
  • > 0: use a user-defined Keying Set from the active scene.
  • < 0: use a builtin Keying Set.

Definition at line 688 of file editors/animation/keyingsets.cc.

References Scene::active_keyingset, BLI_findlink(), builtin_keyingsets, and Scene::keyingsets.

Referenced by insert_key_exec(), and keyingset_get_from_op_with_error().

◆ ANIM_keyingset_get_from_idname()

KeyingSet * ANIM_keyingset_get_from_idname ( Scene * scene,
const char * idname )

◆ ANIM_keyingset_visit_for_search()

void ANIM_keyingset_visit_for_search ( const bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
const char * edit_text,
blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn )

Definition at line 636 of file editors/animation/keyingsets.cc.

References anim_keyingset_visit_for_search_impl(), and C.

◆ anim_keyingset_visit_for_search_impl()

◆ ANIM_keyingset_visit_for_search_no_poll()

void ANIM_keyingset_visit_for_search_no_poll ( const bContext * C,
PointerRNA * ptr,
PropertyRNA * prop,
const char * edit_text,
blender::FunctionRef< void(StringPropertySearchVisitParams)> visit_fn )

◆ ANIM_OT_keying_set_active_set()

◆ ANIM_OT_keying_set_add()

void ANIM_OT_keying_set_add ( wmOperatorType * ot)

◆ ANIM_OT_keying_set_path_add()

void ANIM_OT_keying_set_path_add ( wmOperatorType * ot)

◆ ANIM_OT_keying_set_path_remove()

void ANIM_OT_keying_set_path_remove ( wmOperatorType * ot)

◆ ANIM_OT_keying_set_remove()

void ANIM_OT_keying_set_remove ( wmOperatorType * ot)

◆ ANIM_OT_keyingset_button_add()

void ANIM_OT_keyingset_button_add ( wmOperatorType * ot)

◆ ANIM_OT_keyingset_button_remove()

void ANIM_OT_keyingset_button_remove ( wmOperatorType * ot)

◆ ANIM_scene_get_keyingset_index()

int ANIM_scene_get_keyingset_index ( Scene * scene,
KeyingSet * keyingset )

Get the index of the Keying Set provided, for the given Scene.

Definition at line 560 of file editors/animation/keyingsets.cc.

References BLI_findindex(), builtin_keyingsets, and Scene::keyingsets.

◆ build_keyingset_enum()

◆ keyingset_active_menu_exec()

◆ keyingset_active_menu_invoke()

◆ keyingset_poll_active_edit()

bool keyingset_poll_active_edit ( bContext * C)
static

◆ keyingset_poll_activePath_edit()

◆ keyingset_poll_default_add()

bool keyingset_poll_default_add ( bContext * C)
static

Definition at line 51 of file editors/animation/keyingsets.cc.

References C, and CTX_data_scene().

Referenced by ANIM_OT_keying_set_add().

◆ keyingset_set_active_enum_itemf()

◆ remove_active_keyingset_exec()

◆ remove_active_ks_path_exec()

◆ remove_keyingset_button_exec()