Blender V2.61 - r43446
Classes | Defines | Typedefs | Enumerations | Functions

ED_keyframing.h File Reference

#include "RNA_types.h"

Go to the source code of this file.

Classes

struct  KeyingSetInfo

Defines

#define IS_AUTOKEY_ON(scene)   ((scene) ? (scene->toolsettings->autokey_mode & AUTOKEY_ON) : (U.autokey_mode & AUTOKEY_ON))
#define IS_AUTOKEY_MODE(scene, mode)   ((scene) ? (scene->toolsettings->autokey_mode == AUTOKEY_MODE_##mode) : (U.autokey_mode == AUTOKEY_MODE_##mode))
#define IS_AUTOKEY_FLAG(scene, flag)
#define ANIM_KS_LOCATION_ID   "Location"
#define ANIM_KS_ROTATION_ID   "Rotation"
#define ANIM_KS_SCALING_ID   "Scaling"
#define ANIM_KS_LOC_ROT_SCALE_ID   "LocRotScale"
#define ANIM_KS_AVAILABLE_ID   "Available"
#define ANIM_KS_WHOLE_CHARACTER_ID   "Whole Character"

Typedefs

typedef int(* cbKeyingSet_Poll )(struct KeyingSetInfo *ksi, struct bContext *C)
typedef void(* cbKeyingSet_Iterator )(struct KeyingSetInfo *ksi, struct bContext *C, struct KeyingSet *ks)
typedef void(* cbKeyingSet_Generate )(struct KeyingSetInfo *ksi, struct bContext *C, struct KeyingSet *ks, struct PointerRNA *ptr)
typedef struct KeyingSetInfo KeyingSetInfo
typedef enum eModifyKey_Modes eModifyKey_Modes
typedef enum eModifyKey_Returns eModifyKey_Returns
typedef enum eCreateDriverFlags eCreateDriverFlags
typedef enum eAnimFilterFlags eAnimFilterFlags

Enumerations

enum  eModifyKey_Modes { MODIFYKEY_MODE_INSERT = 0, MODIFYKEY_MODE_DELETE }
enum  eModifyKey_Returns { MODIFYKEY_INVALID_CONTEXT = -1, MODIFYKEY_MISSING_TYPEINFO = -2 }
enum  eCreateDriverFlags { CREATEDRIVER_WITH_DEFAULT_DVAR = (1<<0) }
enum  eAnimFilterFlags {
  ANIMFILTER_KEYS_LOCAL = (1<<0), ANIMFILTER_KEYS_MUTED = (1<<1), ANIMFILTER_KEYS_ACTIVE = (1<<2), ANIMFILTER_KEYS_NOMAT = (1<<9),
  ANIMFILTER_KEYS_NOSKEY = (1<<10)
}

Functions

short ANIM_get_keyframing_flags (struct Scene *scene, short incl_mode)
struct bActionverify_adt_action (struct ID *id, short add)
struct FCurveverify_fcurve (struct bAction *act, const char group[], const char rna_path[], const int array_index, short add)
int insert_bezt_fcurve (struct FCurve *fcu, struct BezTriple *bezt, short flag)
int insert_vert_fcurve (struct FCurve *fcu, float x, float y, short flag)
short insert_keyframe_direct (struct ReportList *reports, struct PointerRNA ptr, struct PropertyRNA *prop, struct FCurve *fcu, float cfra, short flag)
short insert_keyframe (struct ReportList *reports, struct ID *id, struct bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag)
short delete_keyframe (struct ReportList *reports, struct ID *id, struct bAction *act, const char group[], const char rna_path[], int array_index, float cfra, short flag)
void ANIM_relative_keyingset_add_source (ListBase *dsources, struct ID *id, struct StructRNA *srna, void *data)
short ANIM_validate_keyingset (struct bContext *C, ListBase *dsources, struct KeyingSet *ks)
int ANIM_apply_keyingset (struct bContext *C, ListBase *dsources, struct bAction *act, struct KeyingSet *ks, short mode, float cfra)
struct KeyingSetANIM_builtin_keyingset_get_named (struct KeyingSet *prevKS, const char name[])
KeyingSetInfoANIM_keyingset_info_find_named (const char name[])
void ANIM_keyingset_info_register (KeyingSetInfo *ksi)
void ANIM_keyingset_info_unregister (struct Main *bmain, KeyingSetInfo *ksi)
void ANIM_keyingset_infos_exit (void)
struct KeyingSetANIM_scene_get_active_keyingset (struct Scene *scene)
int ANIM_scene_get_keyingset_index (struct Scene *scene, struct KeyingSet *ks)
struct KeyingSetANIM_get_keyingset_for_autokeying (struct Scene *scene, const char *tranformKSName)
void ANIM_keying_sets_menu_setup (struct bContext *C, const char title[], const char op_name[])
struct EnumPropertyItemANIM_keying_sets_enum_itemf (struct bContext *C, struct PointerRNA *ptr, struct PropertyRNA *prop, int *free)
short ANIM_keyingset_context_ok_poll (struct bContext *C, struct KeyingSet *ks)
struct FCurveverify_driver_fcurve (struct ID *id, const char rna_path[], const int array_index, short add)
short ANIM_driver_can_paste (void)
short ANIM_add_driver (struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag, int type)
short ANIM_remove_driver (struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag)
short ANIM_copy_driver (struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag)
short ANIM_paste_driver (struct ReportList *reports, struct ID *id, const char rna_path[], int array_index, short flag)
int autokeyframe_cfra_can_key (struct Scene *scene, struct ID *id)
short fcurve_frame_has_keyframe (struct FCurve *fcu, float frame, short filter)
short id_frame_has_keyframe (struct ID *id, float frame, short filter)
int ED_autokeyframe_object (struct bContext *C, struct Scene *scene, struct Object *ob, struct KeyingSet *ks)
int ED_autokeyframe_pchan (struct bContext *C, struct Scene *scene, struct Object *ob, struct bPoseChannel *pchan, struct KeyingSet *ks)

Detailed Description

Definition in file ED_keyframing.h.


Define Documentation

#define ANIM_KS_AVAILABLE_ID   "Available"

Definition at line 326 of file ED_keyframing.h.

Referenced by ANIM_get_keyingset_for_autokeying().

#define ANIM_KS_LOC_ROT_SCALE_ID   "LocRotScale"
#define ANIM_KS_LOCATION_ID   "Location"
#define ANIM_KS_ROTATION_ID   "Rotation"
#define ANIM_KS_SCALING_ID   "Scaling"
#define ANIM_KS_WHOLE_CHARACTER_ID   "Whole Character"
#define IS_AUTOKEY_FLAG (   scene,
  flag 
)
Value:
((scene)? \
        ((scene->toolsettings->autokey_flag & AUTOKEY_FLAG_##flag) || (U.autokey_flag & AUTOKEY_FLAG_##flag)) \
     : \
        (U.autokey_flag & AUTOKEY_FLAG_##flag))

Definition at line 276 of file ED_keyframing.h.

Referenced by add_keyingset_button_exec(), ANIM_get_keyframing_flags(), ANIM_get_keyingset_for_autokeying(), animrecord_check_state(), autokeyframe_ob_cb_func(), and autokeyframe_pose_cb_func().

#define IS_AUTOKEY_MODE (   scene,
  mode 
)    ((scene) ? (scene->toolsettings->autokey_mode == AUTOKEY_MODE_##mode) : (U.autokey_mode == AUTOKEY_MODE_##mode))
#define IS_AUTOKEY_ON (   scene)    ((scene) ? (scene->toolsettings->autokey_mode & AUTOKEY_ON) : (U.autokey_mode & AUTOKEY_ON))

Typedef Documentation

typedef void(* cbKeyingSet_Generate)(struct KeyingSetInfo *ksi, struct bContext *C, struct KeyingSet *ks, struct PointerRNA *ptr)

Definition at line 127 of file ED_keyframing.h.

typedef void(* cbKeyingSet_Iterator)(struct KeyingSetInfo *ksi, struct bContext *C, struct KeyingSet *ks)

Definition at line 125 of file ED_keyframing.h.

typedef int(* cbKeyingSet_Poll)(struct KeyingSetInfo *ksi, struct bContext *C)

Definition at line 123 of file ED_keyframing.h.

typedef struct KeyingSetInfo KeyingSetInfo

Enumeration Type Documentation

Enumerator:
ANIMFILTER_KEYS_LOCAL 
ANIMFILTER_KEYS_MUTED 
ANIMFILTER_KEYS_ACTIVE 
ANIMFILTER_KEYS_NOMAT 
ANIMFILTER_KEYS_NOSKEY 

Definition at line 305 of file ED_keyframing.h.

Enumerator:
CREATEDRIVER_WITH_DEFAULT_DVAR 

Definition at line 223 of file ED_keyframing.h.

Enumerator:
MODIFYKEY_MODE_INSERT 
MODIFYKEY_MODE_DELETE 

Definition at line 166 of file ED_keyframing.h.

Enumerator:
MODIFYKEY_INVALID_CONTEXT 
MODIFYKEY_MISSING_TYPEINFO 

Definition at line 172 of file ED_keyframing.h.


Function Documentation

short ANIM_add_driver ( struct ReportList reports,
struct ID id,
const char  rna_path[],
int  array_index,
short  flag,
int  type 
)
int ANIM_apply_keyingset ( struct bContext C,
ListBase dsources,
struct bAction act,
struct KeyingSet ks,
short  mode,
float  cfra 
)
struct KeyingSet* ANIM_builtin_keyingset_get_named ( struct KeyingSet prevKS,
const char  name[] 
) [read]
short ANIM_copy_driver ( struct ReportList reports,
struct ID id,
const char  rna_path[],
int  array_index,
short  flag 
)
short ANIM_driver_can_paste ( void  )

Definition at line 293 of file drivers.c.

References NULL.

Referenced by ui_but_menu().

short ANIM_get_keyframing_flags ( struct Scene scene,
short  incl_mode 
)
struct KeyingSet* ANIM_get_keyingset_for_autokeying ( struct Scene scene,
const char *  tranformKSName 
) [read]
struct EnumPropertyItem* ANIM_keying_sets_enum_itemf ( struct bContext C,
struct PointerRNA ptr,
struct PropertyRNA prop,
int *  free 
) [read]
void ANIM_keying_sets_menu_setup ( struct bContext C,
const char  title[],
const char  op_name[] 
)
short ANIM_keyingset_context_ok_poll ( struct bContext C,
struct KeyingSet ks 
)
KeyingSetInfo* ANIM_keyingset_info_find_named ( const char  name[])

Definition at line 525 of file keyingsets.c.

References BLI_findstring(), and NULL.

Referenced by ANIM_keyingset_context_ok_poll(), and ANIM_validate_keyingset().

void ANIM_keyingset_info_register ( KeyingSetInfo ksi)
void ANIM_keyingset_info_unregister ( struct Main bmain,
KeyingSetInfo ksi 
)
void ANIM_keyingset_infos_exit ( void  )
short ANIM_paste_driver ( struct ReportList reports,
struct ID id,
const char  rna_path[],
int  array_index,
short  flag 
)
void ANIM_relative_keyingset_add_source ( ListBase dsources,
struct ID id,
struct StructRNA srna,
void *  data 
)
short ANIM_remove_driver ( struct ReportList reports,
struct ID id,
const char  rna_path[],
int  array_index,
short  flag 
)
struct KeyingSet* ANIM_scene_get_active_keyingset ( struct Scene scene) [read]
int ANIM_scene_get_keyingset_index ( struct Scene scene,
struct KeyingSet ks 
)

Definition at line 656 of file keyingsets.c.

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

short ANIM_validate_keyingset ( struct bContext C,
ListBase dsources,
struct KeyingSet ks 
)
int autokeyframe_cfra_can_key ( struct Scene scene,
struct ID id 
)
short delete_keyframe ( struct ReportList reports,
struct ID id,
struct bAction act,
const char  group[],
const char  rna_path[],
int  array_index,
float  cfra,
short  flag 
)
int ED_autokeyframe_object ( struct bContext C,
struct Scene scene,
struct Object ob,
struct KeyingSet ks 
)
int ED_autokeyframe_pchan ( struct bContext C,
struct Scene scene,
struct Object ob,
struct bPoseChannel pchan,
struct KeyingSet ks 
)
short fcurve_frame_has_keyframe ( struct FCurve fcu,
float  frame,
short  filter 
)
short id_frame_has_keyframe ( struct ID id,
float  frame,
short  filter 
)
int insert_bezt_fcurve ( struct FCurve fcu,
struct BezTriple bezt,
short  flag 
)
short insert_keyframe ( struct ReportList reports,
struct ID id,
struct bAction act,
const char  group[],
const char  rna_path[],
int  array_index,
float  cfra,
short  flag 
)
short insert_keyframe_direct ( struct ReportList reports,
struct PointerRNA  ptr,
struct PropertyRNA prop,
struct FCurve fcu,
float  cfra,
short  flag 
)
int insert_vert_fcurve ( struct FCurve fcu,
float  x,
float  y,
short  flag 
)
struct bAction* verify_adt_action ( struct ID id,
short  add 
) [read]
struct FCurve* verify_driver_fcurve ( struct ID id,
const char  rna_path[],
const int  array_index,
short  add 
) [read]
struct FCurve* verify_fcurve ( struct bAction act,
const char  group[],
const char  rna_path[],
const int  array_index,
short  add 
) [read]