Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | bAnimContext |
struct | bAnimListElem |
struct | bAnimChannelType |
Context | |
enum | eAnimCont_Types { ANIMCONT_NONE = 0 , ANIMCONT_ACTION = 1 , ANIMCONT_SHAPEKEY = 2 , ANIMCONT_GPENCIL = 3 , ANIMCONT_DOPESHEET = 4 , ANIMCONT_FCURVES = 5 , ANIMCONT_DRIVERS = 6 , ANIMCONT_NLA = 7 , ANIMCONT_CHANNEL = 8 , ANIMCONT_MASK = 9 , ANIMCONT_TIMELINE = 10 } |
typedef struct bAnimContext | bAnimContext |
typedef enum eAnimCont_Types | eAnimCont_Types |
Filtering | |
enum | eAnimFilter_Flags { ANIMFILTER_DATA_VISIBLE = (1 << 0) , ANIMFILTER_LIST_VISIBLE = (1 << 1) , ANIMFILTER_CURVE_VISIBLE = (1 << 2) , ANIMFILTER_LIST_CHANNELS = (1 << 3) , ANIMFILTER_ACTIVE = (1 << 4) , ANIMFILTER_ACTGROUPED = (1 << 5) , ANIMFILTER_SEL = (1 << 6) , ANIMFILTER_UNSEL = (1 << 7) , ANIMFILTER_FOREDIT = (1 << 8) , ANIMFILTER_SELEDIT = (1 << 9) , ANIMFILTER_ANIMDATA = (1 << 10) , ANIMFILTER_NODUPLIS = (1 << 11) , ANIMFILTER_FCURVESONLY = (1 << 12) , ANIMFILTER_TMP_PEEK = (1 << 30) , ANIMFILTER_TMP_IGNORE_ONLYSEL = (1u << 31) } |
typedef enum eAnimFilter_Flags | eAnimFilter_Flags |
ENUM_OPERATORS (eAnimFilter_Flags, ANIMFILTER_TMP_IGNORE_ONLYSEL) | |
Drawing TypeInfo | |
enum | eAnimChannel_Role { ACHANNEL_ROLE_EXPANDER = -1 , ACHANNEL_ROLE_CHANNEL = 1 } |
enum | eAnimChannels_SetFlag { ACHANNEL_SETFLAG_CLEAR = 0 , ACHANNEL_SETFLAG_ADD = 1 , ACHANNEL_SETFLAG_INVERT = 2 , ACHANNEL_SETFLAG_TOGGLE = 3 } |
enum | eAnimChannel_Settings { ACHANNEL_SETTING_SELECT = 0 , ACHANNEL_SETTING_PROTECT = 1 , ACHANNEL_SETTING_MUTE = 2 , ACHANNEL_SETTING_EXPAND = 3 , ACHANNEL_SETTING_VISIBLE = 4 , ACHANNEL_SETTING_SOLO = 5 , ACHANNEL_SETTING_PINNED = 6 , ACHANNEL_SETTING_MOD_OFF = 7 , ACHANNEL_SETTING_ALWAYS_VISIBLE = 8 } |
typedef enum eAnimChannel_Role | eAnimChannel_Role |
typedef enum eAnimChannels_SetFlag | eAnimChannels_SetFlag |
typedef enum eAnimChannel_Settings | eAnimChannel_Settings |
typedef struct bAnimChannelType | bAnimChannelType |
Current Frame Drawing | |
Main call to draw current-frame indicator in an Animation Editor. | |
enum | eAnimEditDraw_CurrentFrame { DRAWCFRA_UNIT_SECONDS = (1 << 0) , DRAWCFRA_WIDE = (1 << 1) } |
typedef enum eAnimEditDraw_CurrentFrame | eAnimEditDraw_CurrentFrame |
void | ANIM_draw_cfra (const struct bContext *C, struct View2D *v2d, short flag) |
Unit Conversion Mappings | |
enum | eAnimUnitConv_Flags { ANIM_UNITCONV_RESTORE = (1 << 0) , ANIM_UNITCONV_ONLYKEYS = (1 << 1) , ANIM_UNITCONV_ONLYSEL = (1 << 2) , ANIM_UNITCONV_SELVERTS = (1 << 3) , ANIM_UNITCONV_NORMALIZE = (1 << 5) , ANIM_UNITCONV_NORMALIZE_FREEZE = (1 << 6) } |
typedef enum eAnimUnitConv_Flags | eAnimUnitConv_Flags |
short | ANIM_get_normalization_flags (bAnimContext *ac) |
float | ANIM_unit_mapping_get_factor (struct Scene *scene, struct ID *id, struct FCurve *fcu, short flag, float *r_offset) |
Animation Editor Exports | |
enum | eAnimvizCalcRange { ANIMVIZ_CALC_RANGE_CURRENT_FRAME , ANIMVIZ_CALC_RANGE_CHANGED , ANIMVIZ_CALC_RANGE_FULL } |
typedef enum eAnimvizCalcRange | eAnimvizCalcRange |
struct AnimData * | ED_actedit_animdata_from_context (const struct bContext *C, struct ID **r_adt_id_owner) |
void | ED_animedit_unlink_action (struct bContext *C, struct ID *id, struct AnimData *adt, struct bAction *act, struct ReportList *reports, bool force_delete) |
void | ED_drivers_editor_init (struct bContext *C, struct ScrArea *area) |
struct Depsgraph * | animviz_depsgraph_build (struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer, struct ListBase *targets) |
void | animviz_calc_motionpaths (struct Depsgraph *depsgraph, struct Main *bmain, struct Scene *scene, ListBase *targets, eAnimvizCalcRange range, bool restore) |
void | animviz_motionpath_compute_range (struct Object *ob, struct Scene *scene) |
void | animviz_get_object_motionpaths (struct Object *ob, ListBase *targets) |
UI Panel Drawing | |
typedef bool(* | PanelTypePollFn) (const struct bContext *C, struct PanelType *pt) |
typedef void(* | uiListPanelIDFromDataFunc) (void *data_link, char *r_idname) |
bool | ANIM_nla_context_track_ptr (const struct bContext *C, struct PointerRNA *r_ptr) |
bool | ANIM_nla_context_strip_ptr (const struct bContext *C, struct PointerRNA *r_ptr) |
struct NlaTrack * | ANIM_nla_context_track (const struct bContext *C) |
struct NlaStrip * | ANIM_nla_context_strip (const struct bContext *C) |
struct FCurve * | ANIM_graph_context_fcurve (const struct bContext *C) |
void | ANIM_fmodifier_panels (const struct bContext *C, struct ID *owner_id, struct ListBase *fmodifiers, uiListPanelIDFromDataFunc panel_id_fn) |
void | ANIM_modifier_panels_register_graph_and_NLA (struct ARegionType *region_type, const char *modifier_panel_prefix, PanelTypePollFn poll_function) |
void | ANIM_modifier_panels_register_graph_only (struct ARegionType *region_type, const char *modifier_panel_prefix, PanelTypePollFn poll_function) |
#define ACHANNEL_BUTTON_WIDTH (0.8f * U.widget_unit) |
Channel toggle-buttons.
Definition at line 451 of file ED_anim_api.h.
#define ACHANNEL_FIRST_TOP | ( | ac | ) | (UI_view2d_scale_get_y(&(ac)->region->v2d) * -UI_TIME_SCRUB_MARGIN_Y - ACHANNEL_SKIP) |
Channel heights.
Definition at line 438 of file ED_anim_api.h.
#define ACHANNEL_HEIGHT | ( | ac | ) | (0.8f * (ac)->yscale_fac * U.widget_unit) |
Definition at line 440 of file ED_anim_api.h.
#define ACHANNEL_NAMEWIDTH (10 * U.widget_unit) |
Channel widths.
Definition at line 448 of file ED_anim_api.h.
#define ACHANNEL_SET_FLAG | ( | channel, | |
smode, | |||
sflag | |||
) |
Set/Clear/Toggle macro.
channel | Channel with a 'flag' member that we're setting. |
smode | 0=clear, 1=set, 2=invert. |
sflag | bit-flag to set. |
Definition at line 977 of file ED_anim_api.h.
#define ACHANNEL_SET_FLAG_NEG | ( | channel, | |
smode, | |||
sflag | |||
) |
Set/Clear/Toggle macro, where the flag is negative.
channel | channel with a 'flag' member that we're setting. |
smode | 0=clear, 1=set, 2=invert. |
sflag | Bit-flag to set. |
Definition at line 997 of file ED_anim_api.h.
#define ACHANNEL_SKIP (0.1f * U.widget_unit) |
Definition at line 441 of file ED_anim_api.h.
#define ACHANNEL_STEP | ( | ac | ) | (ACHANNEL_HEIGHT(ac) + ACHANNEL_SKIP) |
Definition at line 442 of file ED_anim_api.h.
#define ACHANNEL_TOT_HEIGHT | ( | ac, | |
item_amount | |||
) | (-ACHANNEL_FIRST_TOP(ac) + ACHANNEL_STEP(ac) * (item_amount + 1)) |
Additional offset to give some room at the end.
Definition at line 444 of file ED_anim_api.h.
#define ANIM_UPDATE_DEFAULT (ANIM_UPDATE_DEPS | ANIM_UPDATE_ORDER | ANIM_UPDATE_HANDLES) |
Definition at line 274 of file ED_anim_api.h.
#define ANIM_UPDATE_DEFAULT_NOHANDLES (ANIM_UPDATE_DEFAULT & ~ANIM_UPDATE_HANDLES) |
Definition at line 275 of file ED_anim_api.h.
#define BEZKEYTYPE | ( | bezt | ) | ((bezt)->hide) |
Provide access to Keyframe Type info in BezTriple. NOTE: this is so that we can change it from being stored in 'hide'
Definition at line 969 of file ED_anim_api.h.
#define EDITABLE_AGRP | ( | agrp | ) | (((agrp)->flag & AGRP_PROTECTED) == 0) |
Action Channel Group.
Definition at line 391 of file ED_anim_api.h.
#define EDITABLE_FCU | ( | fcu | ) | ((fcu->flag & FCURVE_PROTECTED) == 0) |
F-Curve Channels.
Definition at line 397 of file ED_anim_api.h.
#define EDITABLE_GPL | ( | gpl | ) | ((gpl->flag & GP_LAYER_LOCKED) == 0) |
Grease Pencil Layer settings.
Definition at line 408 of file ED_anim_api.h.
#define EDITABLE_MASK | ( | masklay | ) | ((masklay->flag & MASK_LAYERFLAG_LOCKED) == 0) |
Grease Pencil Layer settings.
Definition at line 415 of file ED_anim_api.h.
#define EDITABLE_NLT | ( | nlt | ) | ((nlt->flag & NLATRACK_PROTECTED) == 0) |
Definition at line 420 of file ED_anim_api.h.
#define EDITABLE_SHAPEKEY | ( | kb | ) | ((kb->flag & KEYBLOCK_LOCKED) == 0) |
Definition at line 401 of file ED_anim_api.h.
#define EXPANDED_ACTC | ( | actc | ) | ((actc->flag & ACT_COLLAPSED) == 0) |
Definition at line 385 of file ED_anim_api.h.
#define EXPANDED_AGRP | ( | ac, | |
agrp | |||
) |
Definition at line 392 of file ED_anim_api.h.
#define EXPANDED_DRVD | ( | adt | ) | ((adt->flag & ADT_DRIVERS_COLLAPSED) == 0) |
Definition at line 387 of file ED_anim_api.h.
#define EXPANDED_GPD | ( | gpd | ) | (gpd->flag & GP_DATA_EXPAND) |
Grease Pencil data-block settings.
Definition at line 406 of file ED_anim_api.h.
#define EXPANDED_MASK | ( | mask | ) | (mask->flag & MASK_ANIMF_EXPAND) |
Grease Pencil data-block settings.
Definition at line 413 of file ED_anim_api.h.
#define EXPANDED_MCLIP | ( | clip | ) | (clip->flag & MCLIP_DATA_EXPAND) |
Definition at line 423 of file ED_anim_api.h.
#define EXPANDED_OBJC | ( | ob | ) | (CHECK_TYPE_INLINE(ob, Object *), (((ob)->nlaflag & OB_ADS_COLLAPSED) == 0)) |
Definition at line 356 of file ED_anim_api.h.
#define EXPANDED_PALETTE | ( | palette | ) | (palette->flag & PALETTE_DATA_EXPAND) |
Definition at line 426 of file ED_anim_api.h.
#define EXPANDED_SCEC | ( | sce | ) | (CHECK_TYPE_INLINE(sce, Scene *), ((sce->flag & SCE_DS_COLLAPSED) == 0)) |
Definition at line 350 of file ED_anim_api.h.
#define FILTER_ARM_OBJD | ( | arm | ) | (CHECK_TYPE_INLINE(arm, bArmature *), ((arm->flag & ARM_DS_EXPAND))) |
Definition at line 369 of file ED_anim_api.h.
#define FILTER_CACHEFILE_OBJD | ( | cf | ) | (CHECK_TYPE_INLINE(cf, CacheFile *), (((cf)->flag & CACHEFILE_DS_EXPAND))) |
Definition at line 363 of file ED_anim_api.h.
#define FILTER_CAM_OBJD | ( | ca | ) | (CHECK_TYPE_INLINE(ca, Camera *), ((ca->flag & CAM_DS_EXPAND))) |
Definition at line 362 of file ED_anim_api.h.
#define FILTER_CUR_OBJD | ( | cu | ) | (CHECK_TYPE_INLINE(cu, Curve *), ((cu->flag & CU_DS_EXPAND))) |
Definition at line 365 of file ED_anim_api.h.
#define FILTER_CURVES_OBJD | ( | ha | ) | (CHECK_TYPE_INLINE(ha, Curves *), ((ha->flag & HA_DS_EXPAND))) |
Definition at line 373 of file ED_anim_api.h.
#define FILTER_LAM_OBJD | ( | la | ) | (CHECK_TYPE_INLINE(la, Light *), ((la->flag & LA_DS_EXPAND))) |
Definition at line 361 of file ED_anim_api.h.
#define FILTER_LATTICE_OBJD | ( | lt | ) | (CHECK_TYPE_INLINE(lt, Lattice *), ((lt->flag & LT_DS_EXPAND))) |
Definition at line 371 of file ED_anim_api.h.
#define FILTER_LS_SCED | ( | linestyle | ) | ((linestyle->flag & LS_DS_EXPAND)) |
Definition at line 353 of file ED_anim_api.h.
#define FILTER_MAT_OBJD | ( | ma | ) | (CHECK_TYPE_INLINE(ma, Material *), ((ma->flag & MA_DS_EXPAND))) |
Definition at line 360 of file ED_anim_api.h.
#define FILTER_MBALL_OBJD | ( | mb | ) | (CHECK_TYPE_INLINE(mb, MetaBall *), ((mb->flag2 & MB_DS_EXPAND))) |
Definition at line 368 of file ED_anim_api.h.
#define FILTER_MESH_OBJD | ( | me | ) | (CHECK_TYPE_INLINE(me, Mesh *), ((me->flag & ME_DS_EXPAND))) |
Definition at line 370 of file ED_anim_api.h.
#define FILTER_NTREE_DATA | ( | ntree | ) | (CHECK_TYPE_INLINE(ntree, bNodeTree *), (((ntree)->flag & NTREE_DS_EXPAND))) |
Definition at line 379 of file ED_anim_api.h.
#define FILTER_PART_OBJD | ( | part | ) | (CHECK_TYPE_INLINE(part, ParticleSettings *), (((part)->flag & PART_DS_EXPAND))) |
Definition at line 366 of file ED_anim_api.h.
#define FILTER_POINTS_OBJD | ( | pt | ) | (CHECK_TYPE_INLINE(pt, PointCloud *), ((pt->flag & PT_DS_EXPAND))) |
Definition at line 374 of file ED_anim_api.h.
#define FILTER_SIMULATION_OBJD | ( | sim | ) | (CHECK_TYPE_INLINE(sim, Simulation *), ((sim->flag & SIM_DS_EXPAND))) |
Definition at line 376 of file ED_anim_api.h.
#define FILTER_SKE_OBJD | ( | key | ) | (CHECK_TYPE_INLINE(key, Key *), ((key->flag & KEY_DS_EXPAND))) |
Definition at line 359 of file ED_anim_api.h.
#define FILTER_SPK_OBJD | ( | spk | ) | (CHECK_TYPE_INLINE(spk, Speaker *), ((spk->flag & SPK_DS_EXPAND))) |
Definition at line 372 of file ED_anim_api.h.
#define FILTER_TEX_DATA | ( | tex | ) | (CHECK_TYPE_INLINE(tex, Tex *), ((tex->flag & TEX_DS_EXPAND))) |
Definition at line 381 of file ED_anim_api.h.
#define FILTER_VOLUME_OBJD | ( | vo | ) | (CHECK_TYPE_INLINE(vo, Volume *), ((vo->flag & VO_DS_EXPAND))) |
Definition at line 375 of file ED_anim_api.h.
#define FILTER_WOR_SCED | ( | wo | ) | (CHECK_TYPE_INLINE(wo, World *), (wo->flag & WO_DS_EXPAND)) |
Definition at line 352 of file ED_anim_api.h.
#define NLACHANNEL_BUTTON_WIDTH (0.8f * U.widget_unit) |
Channel toggle-buttons
Definition at line 475 of file ED_anim_api.h.
#define NLACHANNEL_FIRST_TOP | ( | ac | ) | (UI_view2d_scale_get_y(&(ac)->region->v2d) * -UI_TIME_SCRUB_MARGIN_Y - NLACHANNEL_SKIP) |
NLA channel heights
Definition at line 460 of file ED_anim_api.h.
#define NLACHANNEL_HEIGHT | ( | snla | ) |
Definition at line 462 of file ED_anim_api.h.
#define NLACHANNEL_NAMEWIDTH (10 * U.widget_unit) |
Channel widths
Definition at line 472 of file ED_anim_api.h.
#define NLACHANNEL_SKIP (0.1f * U.widget_unit) |
Definition at line 465 of file ED_anim_api.h.
#define NLACHANNEL_STEP | ( | snla | ) | (NLACHANNEL_HEIGHT(snla) + NLACHANNEL_SKIP) |
Definition at line 466 of file ED_anim_api.h.
#define NLACHANNEL_TOT_HEIGHT | ( | ac, | |
item_amount | |||
) | (-NLACHANNEL_FIRST_TOP(ac) + NLACHANNEL_STEP(((SpaceNla *)(ac)->sl)) * (item_amount + 1)) |
Additional offset to give some room at the end.
Definition at line 468 of file ED_anim_api.h.
#define SEL_ACTC | ( | actc | ) | ((actc->flag & ACT_SELECTED)) |
Definition at line 384 of file ED_anim_api.h.
#define SEL_AGRP | ( | agrp | ) | (((agrp)->flag & AGRP_SELECTED) || ((agrp)->flag & AGRP_ACTIVE)) |
Definition at line 395 of file ED_anim_api.h.
#define SEL_ANIMDATA | ( | adt | ) | (adt->flag & ADT_UI_SELECTED) |
Definition at line 429 of file ED_anim_api.h.
#define SEL_FCU | ( | fcu | ) | (fcu->flag & FCURVE_SELECTED) |
Definition at line 398 of file ED_anim_api.h.
#define SEL_GPL | ( | gpl | ) | (gpl->flag & GP_LAYER_SELECT) |
Definition at line 409 of file ED_anim_api.h.
Definition at line 416 of file ED_anim_api.h.
#define SEL_NLT | ( | nlt | ) | (nlt->flag & NLATRACK_SELECTED) |
Definition at line 419 of file ED_anim_api.h.
#define SEL_OBJC | ( | base | ) | (CHECK_TYPE_INLINE(base, Base *), ((base->flag & SELECT))) |
Definition at line 355 of file ED_anim_api.h.
#define SEL_SCEC | ( | sce | ) | (CHECK_TYPE_INLINE(sce, Scene *), ((sce->flag & SCE_DS_SELECTED))) |
Definition at line 349 of file ED_anim_api.h.
#define SEL_SHAPEKEY | ( | kb | ) | (kb->flag & KEYBLOCK_SEL) |
Definition at line 402 of file ED_anim_api.h.
typedef struct bAnimChannelType bAnimChannelType |
Drawing, mouse handling, and flag setting behavior.
typedef struct bAnimContext bAnimContext |
This struct defines a structure used for animation-specific 'context' information.
typedef struct bAnimListElem bAnimListElem |
This struct defines a structure used for quick and uniform access for channels of animation data.
typedef enum eAnim_ChannelType eAnim_ChannelType |
Some types for easier type-testing
typedef enum eAnim_KeyType eAnim_KeyType |
typedef enum eAnim_Update_Flags eAnim_Update_Flags |
Flags for specifying the types of updates (i.e. recalculation/refreshing) that needs to be performed to the data contained in a channel following editing. For use with ANIM_animdata_update()
typedef enum eAnimChannel_Role eAnimChannel_Role |
Role or level of anim-channel in the hierarchy.
typedef enum eAnimChannel_Settings eAnimChannel_Settings |
typedef enum eAnimChannels_SetFlag eAnimChannels_SetFlag |
typedef enum eAnimCont_Types eAnimCont_Types |
typedef enum eAnimEditDraw_CurrentFrame eAnimEditDraw_CurrentFrame |
typedef enum eAnimFilter_Flags eAnimFilter_Flags |
typedef enum eAnimUnitConv_Flags eAnimUnitConv_Flags |
Flags for conversion mapping.
typedef enum eAnimvizCalcRange eAnimvizCalcRange |
Needed for abstraction between the graph editor and the NLA editor.
Definition at line 802 of file ED_anim_api.h.
Avoid including UI_interface.h
here.
Definition at line 804 of file ED_anim_api.h.
enum eAnim_ChannelType |
Some types for easier type-testing
Definition at line 189 of file ED_anim_api.h.
enum eAnim_KeyType |
Enumerator | |
---|---|
ALE_NONE | |
ALE_FCURVE | |
ALE_GPFRAME | |
ALE_MASKLAY | |
ALE_NLASTRIP | |
ALE_ALL | |
ALE_SCE | |
ALE_OB | |
ALE_ACT | |
ALE_GROUP |
Definition at line 248 of file ED_anim_api.h.
enum eAnim_Update_Flags |
Flags for specifying the types of updates (i.e. recalculation/refreshing) that needs to be performed to the data contained in a channel following editing. For use with ANIM_animdata_update()
Enumerator | |
---|---|
ANIM_UPDATE_DEPS | |
ANIM_UPDATE_ORDER | |
ANIM_UPDATE_HANDLES |
Definition at line 267 of file ED_anim_api.h.
enum eAnimChannel_Role |
Role or level of anim-channel in the hierarchy.
Definition at line 538 of file ED_anim_api.h.
Definition at line 560 of file ED_anim_api.h.
Enumerator | |
---|---|
ACHANNEL_SETFLAG_CLEAR | turn off |
ACHANNEL_SETFLAG_ADD | turn on |
ACHANNEL_SETFLAG_INVERT | on->off, off->on |
ACHANNEL_SETFLAG_TOGGLE | some on -> all off / all on |
Definition at line 548 of file ED_anim_api.h.
enum eAnimCont_Types |
Enumerator | |
---|---|
ANIMCONT_NONE | |
ANIMCONT_ACTION | |
ANIMCONT_SHAPEKEY | |
ANIMCONT_GPENCIL | |
ANIMCONT_DOPESHEET | |
ANIMCONT_FCURVES | |
ANIMCONT_DRIVERS | |
ANIMCONT_NLA | |
ANIMCONT_CHANNEL | |
ANIMCONT_MASK | |
ANIMCONT_TIMELINE |
Definition at line 102 of file ED_anim_api.h.
Enumerator | |
---|---|
DRAWCFRA_UNIT_SECONDS | Plain time indicator with no special indicators. Time indication in seconds or frames. |
DRAWCFRA_WIDE | Draw indicator extra wide (for timeline). |
Definition at line 736 of file ED_anim_api.h.
enum eAnimFilter_Flags |
Enumerator | |
---|---|
ANIMFILTER_DATA_VISIBLE | Data which channel represents is fits the dope-sheet filters (i.e. scene visibility criteria). XXX: it's hard to think of any examples where this ISN'T the case... perhaps becomes implicit? |
ANIMFILTER_LIST_VISIBLE | channel is visible within the channel-list hierarchy (i.e. F-Curves within Groups in ActEdit) |
ANIMFILTER_CURVE_VISIBLE | channel has specifically been tagged as visible in Graph Editor (* Graph Editor Only) |
ANIMFILTER_LIST_CHANNELS | include summary channels and "expanders" (for drawing/mouse-selection in channel list) |
ANIMFILTER_ACTIVE | for its type, channel should be "active" one |
ANIMFILTER_ACTGROUPED | channel is a child of the active group (* Actions specialty) |
ANIMFILTER_SEL | channel must be selected/not-selected, but both must not be set together |
ANIMFILTER_UNSEL | |
ANIMFILTER_FOREDIT | editability status - must be editable to be included |
ANIMFILTER_SELEDIT | only selected animchannels should be considerable as editable - mainly for Graph Editor's option for keys on select curves only |
ANIMFILTER_ANIMDATA | Flags used to enforce certain data types.
|
ANIMFILTER_NODUPLIS | duplicate entries for animation data attached to multi-user blocks must not occur |
ANIMFILTER_FCURVESONLY | avoid channel that does not have any F-curve data |
ANIMFILTER_TMP_PEEK | for checking if we should keep some collapsed channel around (internal use only!) |
ANIMFILTER_TMP_IGNORE_ONLYSEL | Ignore ONLYSEL flag from bDopeSheet.filterflag (internal use only!) |
Definition at line 284 of file ED_anim_api.h.
enum eAnimUnitConv_Flags |
Flags for conversion mapping.
Enumerator | |
---|---|
ANIM_UNITCONV_RESTORE | Restore to original internal values. |
ANIM_UNITCONV_ONLYKEYS | Ignore handles (i.e. only touch main keyframes). |
ANIM_UNITCONV_ONLYSEL | Only touch selected BezTriples. |
ANIM_UNITCONV_SELVERTS | Only touch selected vertices. |
ANIM_UNITCONV_NORMALIZE | Scale FCurve i a way it fits to -1..1 space. |
ANIM_UNITCONV_NORMALIZE_FREEZE | Only when normalization is used: use scale factor from previous run, prevents curves from jumping all over the place when tweaking them. |
Definition at line 930 of file ED_anim_api.h.
enum eAnimvizCalcRange |
Definition at line 1088 of file ED_anim_api.h.
void ANIM_anim_channels_select_set | ( | bAnimContext * | ac, |
eAnimChannels_SetFlag | sel | ||
) |
Set selection state of all animation channels in the context.
Definition at line 451 of file anim_channels_edit.c.
References ANIM_animdata_freelist(), anim_channels_for_selection(), and anim_channels_select_set().
Referenced by animchannels_box_select_exec(), animchannels_selectall_exec(), click_select_channel_dummy(), click_select_channel_fcurve(), click_select_channel_gplayer(), click_select_channel_group(), click_select_channel_masklayer(), click_select_channel_shapekey(), drivers_editor_show_exec(), mouse_action_keys(), mouse_graph_keys(), mouse_nla_channels(), and mouse_nla_strips().
void ANIM_anim_channels_select_toggle | ( | bAnimContext * | ac | ) |
Toggle selection state of all animation channels in the context.
Definition at line 458 of file anim_channels_edit.c.
References ANIM_animdata_freelist(), anim_channels_for_selection(), anim_channels_select_set(), and anim_channels_selection_flag_for_toggle().
Referenced by animchannels_selectall_exec().
bool ANIM_animdata_can_have_greasepencil | ( | const eAnimCont_Types | type | ) |
Check if the given animation container can contain grease pencil layer keyframes.
Definition at line 417 of file anim_filter.c.
References ANIMCONT_DOPESHEET, ANIMCONT_GPENCIL, ANIMCONT_TIMELINE, ELEM, and type.
Referenced by action_circle_select_exec(), actkeys_box_select_exec(), actkeys_columnselect_exec(), actkeys_deselectall_exec(), actkeys_lassoselect_exec(), actkeys_select_less_exec(), actkeys_select_linked_exec(), and actkeys_select_more_exec().
bool ANIM_animdata_context_getdata | ( | bAnimContext * | ac | ) |
Obtain current anim-data context, given that context info from Blender context has already been set:
Definition at line 349 of file anim_filter.c.
References actedit_get_context(), bAnimContext::data, graphedit_get_context(), nlaedit_get_context(), bAnimContext::sl, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, and bAnimContext::spacetype.
Referenced by ANIM_animdata_get_context().
size_t ANIM_animdata_filter | ( | bAnimContext * | ac, |
ListBase * | anim_data, | ||
eAnimFilter_Flags | filter_mode, | ||
void * | data, | ||
eAnimCont_Types | datatype | ||
) |
This function filters the active data source to leave only animation channels suitable for usage by the caller. It will return the length of the list
anim_data | Is a pointer to a ListBase, to which the filtered animation channels will be placed for use. |
filter_mode | how should the data be filtered - bit-mapping accessed flags. |
Definition at line 3447 of file anim_filter.c.
References bAnimContext::ads, SpaceAction::ads, Key::adt, Object::adt, ANIMCHANNEL_NEW_CHANNEL, ANIMCONT_ACTION, ANIMCONT_CHANNEL, ANIMCONT_DOPESHEET, ANIMCONT_DRIVERS, ANIMCONT_FCURVES, ANIMCONT_GPENCIL, ANIMCONT_MASK, ANIMCONT_NLA, ANIMCONT_SHAPEKEY, ANIMCONT_TIMELINE, animdata_filter_animchan(), animdata_filter_dopesheet(), animdata_filter_dopesheet_summary(), animdata_filter_gpencil(), animdata_filter_mask(), animdata_filter_remove_duplis(), animdata_filter_remove_invalid(), animdata_filter_shapekey(), animfilter_action(), ANIMFILTER_ANIMDATA, ANIMFILTER_NODUPLIS, ANIMTYPE_ANIMDATA, bAnimContext::bmain, data, LIKELY, NULL, bAnimContext::obact, bAnimContext::sl, and UNLIKELY.
Referenced by achannel_setting_flush_widget_cb(), actkeys_channels_get_selected_extents(), actkeys_find_list_element_at_position(), actkeys_framejump_exec(), actkeys_mselect_channel_only(), actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), actkeys_select_linked_exec(), ANIM_animdata_keyframe_callback(), anim_channels_for_selection(), ANIM_editkeyframes_refresh(), ANIM_set_active_channel(), ANIM_sync_animchannels_to_data(), animchannels_clean_empty_exec(), animchannels_delete_exec(), animchannels_enable_exec(), animchannels_group_channels(), animchannels_group_exec(), animchannels_rearrange_exec(), animchannels_ungroup_exec(), bake_graph_curves(), blend_to_default_graph_keys(), blend_to_neighbor_graph_keys(), box_select_action(), box_select_anim_channels(), box_select_elem(), box_select_nla_strips(), breakdown_graph_keys(), cachefile_to_keylist(), clean_action_keys(), clean_graph_keys(), columnselect_action_keys(), columnselect_graph_keys(), copy_action_keys(), copy_graph_keys(), createTransActionData(), createTransNlaData(), decimate_graph_keys(), delete_action_keys(), delete_graph_keys(), deselect_action_keys(), deselect_nla_strips(), draw_channel_names(), draw_channel_strips(), draw_nla_channel_list(), draw_nla_main_data(), duplicate_action_keys(), duplicate_graph_keys(), ED_gpencil_anim_copybuf_copy(), ED_gpencil_anim_copybuf_paste(), ED_nla_postop_refresh(), equalize_graph_keys(), get_active_fcurve_channel(), get_keyframe_extents(), get_nearest_fcurve_verts_list(), get_nlastrip_extents(), graph_draw_channel_names(), graph_draw_curves(), graph_driver_delete_invalid_exec(), graph_fmodifier_add_exec(), graph_fmodifier_paste_exec(), graph_refresh_fcurve_colors(), graphkeys_euler_filter_exec(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), graphkeys_smooth_exec(), graphop_editable_keyframes_poll(), graphop_selected_fcurve_poll(), graphop_visible_keyframes_poll(), graphview_curves_hide_exec(), graphview_curves_reveal_exec(), initialize_box_select_anim_data(), insert_action_keys(), insert_graph_keys(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), mouse_anim_channels(), mouse_nla_channels(), nla_channels_get_selected_extents(), nla_fmodifier_add_exec(), nla_fmodifier_copy_exec(), nla_fmodifier_paste_exec(), nla_panel_context(), nlachannels_pushdown_exec(), nlaedit_add_actionclip_exec(), nlaedit_add_meta_exec(), nlaedit_add_sound_exec(), nlaedit_add_tracks_empty(), nlaedit_add_tracks_existing(), nlaedit_add_transition_exec(), nlaedit_apply_scale_exec(), nlaedit_clear_scale_exec(), nlaedit_delete_exec(), nlaedit_delete_tracks_exec(), nlaedit_disable_tweakmode(), nlaedit_duplicate_exec(), nlaedit_enable_tweakmode_exec(), nlaedit_make_single_user_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_remove_meta_exec(), nlaedit_select_leftright(), nlaedit_snap_exec(), nlaedit_split_exec(), nlaedit_strip_at_region_position(), nlaedit_swap_exec(), nlaedit_sync_actlen_exec(), nlaedit_toggle_mute_exec(), ob_keyframes_loop(), ob_to_keylist(), paste_action_keys(), paste_graph_keys(), posttrans_action_clean(), rearrange_animchannels_filter_visible(), rearrange_gpencil_channels(), region_select_action_keys(), region_select_elem(), rename_anim_channels(), reset_bezts(), sample_action_keys(), sample_graph_keys(), scene_keyframes_loop(), scene_to_keylist(), screen_ctx_active_editable_fcurve(), screen_ctx_sel_actions_impl(), screen_ctx_sel_edit_fcurves_(), screen_ctx_selected_editable_keyframes(), screen_ctx_selected_nla_strips(), select_anim_channel_keys(), select_moreless_action_keys(), select_moreless_graph_keys(), seteasing_graph_keys(), setexpo_action_keys(), setexpo_graph_keys(), setflag_anim_channels(), sethandles_action_keys(), sethandles_graph_keys(), setipo_graph_keys(), setkeytype_action_keys(), snap_action_keys(), snap_graph_keys(), special_aftertrans_update__actedit(), special_aftertrans_update__graph(), special_aftertrans_update__nla(), store_original_bezt_arrays(), sum_selected_keyframes(), summary_keyframes_loop(), summary_to_keylist(), and unbake_graph_curves().
Definition at line 397 of file anim_deps.c.
References BLI_assert, BLI_freelistN(), BLI_listbase_clear(), ListBase::first, MEM_freeN, bAnimListElem::next, and bAnimListElem::update.
Referenced by achannel_setting_flush_widget_cb(), actkeys_channels_get_selected_extents(), actkeys_find_list_element_at_position(), actkeys_framejump_exec(), actkeys_mselect_channel_only(), actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), actkeys_select_linked_exec(), ANIM_anim_channels_select_set(), ANIM_anim_channels_select_toggle(), ANIM_animdata_keyframe_callback(), ANIM_editkeyframes_refresh(), ANIM_set_active_channel(), ANIM_sync_animchannels_to_data(), animchannels_clean_empty_exec(), animchannels_delete_exec(), animchannels_enable_exec(), animchannels_group_channels(), animchannels_group_exec(), animchannels_rearrange_exec(), animchannels_ungroup_exec(), bake_graph_curves(), blend_to_default_graph_keys(), blend_to_neighbor_graph_keys(), box_select_action(), box_select_anim_channels(), box_select_elem(), box_select_graphcurves(), box_select_graphkeys(), box_select_nla_strips(), breakdown_graph_keys(), cachefile_to_keylist(), clean_action_keys(), clean_graph_keys(), columnselect_action_keys(), columnselect_graph_keys(), copy_action_keys(), copy_graph_keys(), createTransActionData(), createTransNlaData(), decimate_graph_keys(), delete_action_keys(), delete_graph_keys(), deselect_action_keys(), deselect_nla_strips(), draw_channel_names(), draw_channel_strips(), draw_nla_channel_list(), draw_nla_main_data(), duplicate_action_keys(), duplicate_graph_keys(), ED_gpencil_anim_copybuf_copy(), ED_gpencil_anim_copybuf_paste(), ED_nla_postop_refresh(), equalize_graph_keys(), get_active_fcurve_channel(), get_keyframe_extents(), get_nearest_fcurve_verts_list(), get_nlastrip_extents(), graph_draw_channel_names(), graph_draw_curves(), graph_driver_delete_invalid_exec(), graph_fmodifier_add_exec(), graph_fmodifier_paste_exec(), graph_refresh_fcurve_colors(), graphkeys_euler_filter_exec(), graphkeys_mselect_column(), graphkeys_select_leftright(), graphkeys_select_linked_exec(), graphkeys_smooth_exec(), graphop_editable_keyframes_poll(), graphop_selected_fcurve_poll(), graphop_visible_keyframes_poll(), graphview_curves_hide_exec(), graphview_curves_reveal_exec(), insert_action_keys(), insert_graph_keys(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), mouse_anim_channels(), mouse_nla_channels(), nla_channels_get_selected_extents(), nla_fmodifier_add_exec(), nla_fmodifier_copy_exec(), nla_fmodifier_paste_exec(), nla_panel_context(), nlachannels_pushdown_exec(), nlaedit_add_actionclip_exec(), nlaedit_add_meta_exec(), nlaedit_add_sound_exec(), nlaedit_add_tracks_empty(), nlaedit_add_tracks_existing(), nlaedit_add_transition_exec(), nlaedit_apply_scale_exec(), nlaedit_clear_scale_exec(), nlaedit_delete_exec(), nlaedit_delete_tracks_exec(), nlaedit_disable_tweakmode(), nlaedit_duplicate_exec(), nlaedit_enable_tweakmode_exec(), nlaedit_make_single_user_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_remove_meta_exec(), nlaedit_select_leftright(), nlaedit_snap_exec(), nlaedit_split_exec(), nlaedit_strip_at_region_position(), nlaedit_swap_exec(), nlaedit_sync_actlen_exec(), nlaedit_toggle_mute_exec(), ob_keyframes_loop(), ob_to_keylist(), paste_action_keys(), paste_graph_keys(), posttrans_action_clean(), rearrange_gpencil_channels(), region_select_action_keys(), region_select_elem(), rename_anim_channels(), reset_bezts(), sample_action_keys(), sample_graph_keys(), scene_keyframes_loop(), scene_to_keylist(), screen_ctx_active_editable_fcurve(), screen_ctx_sel_actions_impl(), screen_ctx_sel_edit_fcurves_(), screen_ctx_selected_editable_keyframes(), screen_ctx_selected_nla_strips(), select_anim_channel_keys(), select_moreless_action_keys(), select_moreless_graph_keys(), seteasing_graph_keys(), setexpo_action_keys(), setexpo_graph_keys(), setflag_anim_channels(), sethandles_action_keys(), sethandles_graph_keys(), setipo_graph_keys(), setkeytype_action_keys(), snap_action_keys(), snap_graph_keys(), special_aftertrans_update__actedit(), special_aftertrans_update__graph(), special_aftertrans_update__nla(), store_original_bezt_arrays(), sum_selected_keyframes(), summary_keyframes_loop(), summary_to_keylist(), and unbake_graph_curves().
bool ANIM_animdata_get_context | ( | const struct bContext * | C, |
bAnimContext * | ac | ||
) |
Obtain current anim-data context from Blender Context info
void ANIM_animdata_update | ( | bAnimContext * | ac, |
ListBase * | anim_data | ||
) |
Acts on bAnimListElem eAnim_Update_Flags.
Definition at line 302 of file anim_deps.c.
References ALE_FCURVE, ALE_MASKLAY, ANIM_list_elem_update(), ANIM_UPDATE_DEPS, ANIM_UPDATE_HANDLES, ANIM_UPDATE_ORDER, ANIMTYPE_ANIMDATA, ANIMTYPE_GPLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, BKE_fcurve_handles_recalc(), BKE_gpencil_layer_frames_sort(), BLI_assert, bAnimContext::bmain, bAnimListElem::data, bAnimListElem::datatype, ELEM, ListBase::first, G, G_DEBUG, bAnimListElem::key_data, bAnimListElem::next, NULL, bAnimContext::scene, sort_time_fcurve(), bAnimListElem::type, and bAnimListElem::update.
Referenced by actkeys_mselect_channel_only(), actkeys_mselect_column(), actkeys_mselect_single(), actkeys_select_leftright(), ANIM_animdata_keyframe_callback(), ANIM_editkeyframes_refresh(), animchannels_delete_exec(), animchannels_enable_exec(), bake_graph_curves(), blend_to_default_graph_keys(), blend_to_neighbor_graph_keys(), box_select_action(), box_select_elem(), breakdown_graph_keys(), clean_action_keys(), clean_graph_keys(), columnselect_action_keys(), decimate_graph_keys(), delete_action_keys(), delete_graph_keys(), deselect_action_keys(), duplicate_action_keys(), duplicate_graph_keys(), ED_nla_postop_refresh(), equalize_graph_keys(), graph_fmodifier_add_exec(), graph_fmodifier_paste_exec(), graphkeys_click_insert_exec(), graphkeys_euler_filter_exec(), graphkeys_smooth_exec(), insert_action_keys(), insert_graph_keys(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), mouse_action_keys(), mouse_nla_channels(), nla_fmodifier_add_exec(), nla_fmodifier_paste_exec(), nlaedit_add_meta_exec(), nlaedit_add_tracks_empty(), nlaedit_add_tracks_existing(), nlaedit_apply_scale_exec(), nlaedit_delete_tracks_exec(), nlaedit_disable_tweakmode(), nlaedit_enable_tweakmode_exec(), nlaedit_make_single_user_exec(), nlaedit_remove_meta_exec(), nlaedit_snap_exec(), nlaedit_sync_actlen_exec(), nlaedit_toggle_mute_exec(), paste_animedit_keys(), region_select_action_keys(), region_select_elem(), sample_action_keys(), sample_graph_keys(), seteasing_graph_keys(), setexpo_action_keys(), setexpo_graph_keys(), sethandles_action_keys(), sethandles_graph_keys(), setipo_graph_keys(), setkeytype_action_keys(), snap_action_keys(), snap_graph_keys(), and unbake_graph_curves().
Definition at line 619 of file anim_draw.c.
References ATTR_FALLTHROUGH, BLI_rctf_size_x(), C, RenderData::cfra, CTX_data_scene(), CTX_wm_region(), View2D::cur, find_prev_next_keyframes(), FPS, Scene::r, scene, UI_view2d_smooth_view(), ARegion::v2d, w(), rctf::xmax, rctf::xmin, rctf::ymax, rctf::ymin, ZOOM_FRAME_MODE_KEEP_RANGE, ZOOM_FRAME_MODE_KEYFRAMES, and ZOOM_FRAME_MODE_SECONDS.
Referenced by actkeys_view_frame_exec(), graphkeys_view_frame_exec(), nlaedit_viewframe_exec(), and sequencer_view_frame_exec().
bAction* ANIM_channel_action_get | ( | const bAnimListElem * | ale | ) |
Retrieves the Action associated with this animation channel.
Definition at line 4208 of file anim_channels_defines.c.
References ALE_ACT, ANIMTYPE_FCURVE, ANIMTYPE_GROUP, bAnimListElem::datatype, ELEM, bAnimListElem::fcurve_owner_id, GS, ID_AC, bAnimListElem::key_data, ID::name, NULL, and bAnimListElem::type.
Referenced by draw_channel_action_ranges(), and screen_ctx_sel_actions_impl().
void ANIM_channel_debug_print_info | ( | bAnimListElem * | ale, |
short | indent_level | ||
) |
Print debug info string for the given channel.
Definition at line 4176 of file anim_channels_defines.c.
References ANIM_CHAN_NAME_SIZE, ANIM_channel_get_typeinfo(), BLI_strncpy(), bAnimChannelType::channel_type_name, bAnimChannelType::name, and bAnimListElem::type.
void ANIM_channel_draw | ( | bAnimContext * | ac, |
bAnimListElem * | ale, | ||
float | yminc, | ||
float | ymaxc, | ||
size_t | channel_index | ||
) |
Draw the given channel.
Definition at line 4382 of file anim_channels_defines.c.
References ACHANNEL_BUTTON_WIDTH, achannel_is_being_renamed(), ACHANNEL_SETTING_ALWAYS_VISIBLE, ACHANNEL_SETTING_EXPAND, ACHANNEL_SETTING_MOD_OFF, ACHANNEL_SETTING_MUTE, ACHANNEL_SETTING_PINNED, ACHANNEL_SETTING_PROTECT, ACHANNEL_SETTING_SELECT, ACHANNEL_SETTING_SOLO, ACHANNEL_SETTING_VISIBLE, ANIM_CHAN_NAME_SIZE, ANIM_channel_get_typeinfo(), ANIM_channel_setting_get(), ANIMTYPE_FCURVE, ANIMTYPE_GPLAYER, ANIMTYPE_GROUP, ANIMTYPE_NLAACTION, ANIMTYPE_NLACURVE, ANIMTYPE_SHAPEKEY, BLI_rcti_size_x(), col, FCurve::color, color, View2D::cur, bAnimListElem::data, bAnimChannelType::draw_backdrop, ELEM, EXTRA_SCROLL_PAD, FCURVE_DISABLED, FCURVE_VISIBLE, bAnimListElem::flag, SpaceAction::flag, FCurve::flag, SpaceGraph::flag, bAnimChannelType::get_backdrop_color, bAnimChannelType::get_offset, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), GRAPH_COLOR_BAND_WIDTH, GRAPH_ICON_VISIBILITY_OFFSET, bAnimChannelType::has_setting, bAnimChannelType::icon, ICON_WIDTH, immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformColor3f(), immUniformColor3fv(), immUniformColor3fvAlpha(), immVertex2f(), immVertexFormat(), View2D::mask, bAnimChannelType::name, NLACHANNEL_SKIP, NULL, offset, pos, bAnimContext::region, SACTION_SLIDERS, SIPO_SLIDERS, bAnimContext::sl, SLIDER_WIDTH, SPACE_ACTION, SPACE_GRAPH, SPACE_NLA, bAnimContext::spacetype, TH_TEXT, TH_TEXT_HI, bAnimListElem::type, UI_fontstyle_draw_simple(), UI_FSTYLE_WIDGET, UI_GetThemeColor4ubv(), UI_icon_draw(), ARegion::v2d, V2D_SCROLL_WIDTH, rctf::xmax, and y.
Referenced by draw_channel_names(), draw_nla_channel_list(), and graph_draw_channel_names().
void ANIM_channel_draw_widgets | ( | const struct bContext * | C, |
bAnimContext * | ac, | ||
bAnimListElem * | ale, | ||
struct uiBlock * | block, | ||
rctf * | rect, | ||
size_t | channel_index | ||
) |
Draw UI widgets the given channel.
const bAnimChannelType* ANIM_channel_get_typeinfo | ( | bAnimListElem * | ale | ) |
Get type info from given channel type.
Definition at line 4156 of file anim_channels_defines.c.
References ANIM_init_channel_typeinfo_data(), animchannelTypeInfo, ANIMTYPE_NUM_TYPES, NULL, and bAnimListElem::type.
Referenced by acf_generic_basic_offset(), acf_generic_channel_backdrop(), acf_generic_channel_color(), acf_generic_dataexpand_backdrop(), acf_generic_root_backdrop(), acf_gpencil_channel_color(), acf_group_backdrop(), acf_nla_controls_backdrop(), acf_nlaaction_backdrop(), acf_summary_backdrop(), actkeys_channels_get_selected_extents(), ANIM_channel_debug_print_info(), ANIM_channel_draw(), ANIM_channel_draw_widgets(), ANIM_channel_setting_get(), ANIM_channel_setting_set(), anim_flush_channel_setting_down(), anim_flush_channel_setting_up(), ANIM_flush_setting_anim_channels(), draw_channel_strips(), graph_panel_properties(), nla_channels_get_selected_extents(), rename_anim_channels(), and skip_fcurve_with_name().
short ANIM_channel_setting_get | ( | bAnimContext * | ac, |
bAnimListElem * | ale, | ||
eAnimChannel_Settings | setting | ||
) |
Check if some setting for a channel is enabled Returns: 1 = On, 0 = Off, -1 = Invalid.
Definition at line 4227 of file anim_channels_defines.c.
References ANIM_channel_get_typeinfo(), bAnimChannelType::has_setting, ptr, bAnimChannelType::setting_flag, and bAnimChannelType::setting_ptr.
Referenced by acf_generic_root_backdrop(), acf_group_backdrop(), acf_nla_controls_backdrop(), achannel_setting_flush_widget_cb(), actkeys_channels_get_selected_extents(), ANIM_channel_draw(), draw_channel_strips(), draw_setting_widget(), graphview_curves_reveal_exec(), nla_channels_get_selected_extents(), screen_ctx_sel_actions_impl(), and setflag_anim_channels().
void ANIM_channel_setting_set | ( | bAnimContext * | ac, |
bAnimListElem * | ale, | ||
eAnimChannel_Settings | setting, | ||
eAnimChannels_SetFlag | mode | ||
) |
Change value of some setting for a channel.
Definition at line 4309 of file anim_channels_defines.c.
References ACF_SETTING_SET, ANIM_channel_get_typeinfo(), bAnimChannelType::has_setting, ptr, bAnimChannelType::setting_flag, and bAnimChannelType::setting_ptr.
Referenced by anim_flush_channel_setting_down(), anim_flush_channel_setting_up(), box_select_anim_channels(), graphview_curves_hide_exec(), graphview_curves_reveal_exec(), and setflag_anim_channels().
void ANIM_draw_action_framerange | ( | struct AnimData * | adt, |
struct bAction * | action, | ||
struct View2D * | v2d, | ||
float | ymin, | ||
float | ymax | ||
) |
Draw manually set intended playback frame range guides for the action in the background. Allows specifying a subset of the Y range of the view.
Definition at line 149 of file anim_draw.c.
References ACT_FRAME_RANGE, BKE_nla_tweakedit_remap(), CLAMP_MAX, CLAMP_MIN, color, View2D::cur, bAction::flag, bAction::frame_end, bAction::frame_start, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_line_width(), GPU_PRIM_LINES, GPU_SHADER_2D_DIAG_STRIPES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniform1i(), immUniform4f(), immUniformThemeColorShade(), immVertex2f(), immVertexFormat(), NLATIME_CONVERT_MAP, pos, TH_BACK, UI_GetThemeColorShadeAlpha4fv(), rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by action_main_region_draw(), draw_channel_action_ranges(), and draw_nla_main_data().
General call for drawing current frame indicator in animation editor.
Draw frame range guides (for scene frame range) in background.
TODO: Should we still show these when preview range is enabled?
Definition at line 113 of file anim_draw.c.
References View2D::cur, RenderData::efra, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_PRIM_LINES, GPU_SHADER_2D_UNIFORM_COLOR, GPU_vertformat_attr_add(), immBegin(), immBindBuiltinProgram(), immEnd(), immRectf(), immUnbindProgram(), immUniformThemeColorShade(), immUniformThemeColorShadeAlpha(), immVertex2f(), immVertexFormat(), pos, Scene::r, scene, RenderData::sfra, TH_BACK, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by action_main_region_draw(), graph_main_region_draw(), and nla_main_region_draw().
Draw preview range 'curtains' for highlighting where the animation data is.
void ANIM_fcurve_delete_from_animdata | ( | bAnimContext * | ac, |
struct AnimData * | adt, | ||
struct FCurve * | fcu | ||
) |
Delete the F-Curve from the given AnimData block (if possible), as appropriate according to animation context.
Definition at line 632 of file anim_channels_edit.c.
References AnimData::action, action_groups_remove_channel(), ANIM_remove_empty_action_from_animdata(), ANIMCONT_DRIVERS, BKE_fcurve_free(), BLI_freelinkN(), BLI_listbase_is_empty(), BLI_remlink(), bActionGroup::channels, bAction::curves, bAnimContext::datatype, AnimData::drivers, ELEM, bAction::groups, FCurve::grp, and NULL.
Referenced by animchannels_delete_exec(), clean_fcurve(), clear_anim_v3d_exec(), clear_keyframe(), delete_action_keys(), delete_graph_keys(), and delete_keyframe_fcurve().
void ANIM_flush_setting_anim_channels | ( | bAnimContext * | ac, |
ListBase * | anim_data, | ||
bAnimListElem * | ale_setting, | ||
eAnimChannel_Settings | setting, | ||
eAnimChannels_SetFlag | mode | ||
) |
Flush visibility (for Graph Editor) changes up/down hierarchy for changes in the given setting
Definition at line 577 of file anim_channels_edit.c.
References ACHANNEL_SETTING_ALWAYS_VISIBLE, ANIM_channel_get_typeinfo(), anim_flush_channel_setting_down(), anim_flush_channel_setting_up(), bAnimListElem::data, ELEM, ListBase::first, bAnimChannelType::get_offset, bAnimListElem::id, bAnimListElem::next, NULL, and bAnimListElem::type.
Referenced by achannel_setting_flush_widget_cb(), graphview_curves_hide_exec(), graphview_curves_reveal_exec(), and setflag_anim_channels().
void ANIM_fmodifier_panels | ( | const struct bContext * | C, |
struct ID * | owner_id, | ||
struct ListBase * | fmodifiers, | ||
uiListPanelIDFromDataFunc | panel_id_fn | ||
) |
Checks if the panels match the active strip / curve, rebuilds them if they don't.
Copy the given F-Modifiers to the buffer, returning whether anything was copied or not assuming that the buffer has been cleared already with ANIM_fmodifiers_copybuf_free()
active | Only copy the active modifier. |
Definition at line 960 of file fmodifier_ui.c.
References blender::compositor::active, BLI_addtail(), copy_fmodifier(), copy_fmodifiers(), ELEM, find_active_fmodifier(), ListBase::first, fmodifier_copypaste_buf, and NULL.
Referenced by graph_fmodifier_copy_exec(), and nla_fmodifier_copy_exec().
Free the copy/paste buffer.
Definition at line 954 of file fmodifier_ui.c.
References fmodifier_copypaste_buf, and free_fmodifiers().
Referenced by graph_fmodifier_copy_exec(), nla_fmodifier_copy_exec(), and WM_exit_ex().
'Paste' the F-Modifier(s) from the buffer to the specified list
replace | Free all the existing modifiers to leave only the pasted ones. |
Definition at line 989 of file fmodifier_ui.c.
References BKE_fcurve_handles_recalc(), BKE_fcurve_is_cyclic(), BLI_addtail(), copy_fmodifier(), curve, FModifier::curve, ListBase::first, FModifier::flag, fmodifier_copypaste_buf, FMODIFIER_FLAG_ACTIVE, free_fmodifiers(), FModifier::next, and NULL.
Referenced by graph_fmodifier_paste_exec(), and nla_fmodifier_paste_exec().
short ANIM_get_normalization_flags | ( | bAnimContext * | ac | ) |
Get flags used for normalization in ANIM_unit_mapping_get_factor.
Definition at line 318 of file anim_draw.c.
References ANIM_UNITCONV_NORMALIZE, ANIM_UNITCONV_NORMALIZE_FREEZE, SpaceGraph::flag, SIPO_NORMALIZE, SIPO_NORMALIZE_FREEZE, bAnimContext::sl, SPACE_GRAPH, and SpaceLink::spacetype.
Referenced by draw_fcurve(), draw_fcurve_curve(), draw_fcurve_curve_bezts(), draw_fcurve_curve_samples(), get_nearest_fcurve_verts_list(), graph_draw_driver_debug(), graphkeys_click_insert_exec(), initialize_box_select_key_editing_data(), insert_graph_keys(), mirror_graph_keys(), snap_graph_keys(), and sum_selected_keyframes().
Referenced by fmodifier_get_pointers(), and fmodifier_list_space_specific().
Tags the given ID block for refreshes (if applicable) due to Animation Editor editing.
Definition at line 99 of file anim_deps.c.
References DEG_id_tag_update_ex(), ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, and ID_RECALC_TRANSFORM.
Referenced by recalcData_nla().
void ANIM_list_elem_update | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
bAnimListElem * | ale | ||
) |
Tags the given anim list element for refreshes (if applicable) due to Animation Editor editing.
Definition at line 44 of file anim_deps.c.
References AnimData::action, ALE_FCURVE, ANIMTYPE_ANIMDATA, ANIMTYPE_NLAACTION, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, BKE_animdata_from_id(), bAnimListElem::datatype, DEG_id_tag_update(), ELEM, id, bAnimListElem::id, bAction::id, ID_RECALC_ANIMATION, ID_RECALC_GEOMETRY, ID_RECALC_TRANSFORM, if(), bAnimListElem::key_data, NULL, ptr, RNA_id_pointer_create(), FCurve::rna_path, RNA_path_resolve_property(), RNA_property_update_main(), scene, and bAnimListElem::type.
Referenced by ANIM_animdata_update().
void ANIM_modifier_panels_register_graph_and_NLA | ( | struct ARegionType * | region_type, |
const char * | modifier_panel_prefix, | ||
PanelTypePollFn | poll_function | ||
) |
Definition at line 921 of file fmodifier_ui.c.
References panel_register_envelope(), panel_register_fn_generator(), panel_register_generator(), panel_register_limits(), panel_register_noise(), and panel_register_stepped().
Referenced by graph_buttons_register(), and nla_buttons_register().
void ANIM_modifier_panels_register_graph_only | ( | struct ARegionType * | region_type, |
const char * | modifier_panel_prefix, | ||
PanelTypePollFn | poll_function | ||
) |
Definition at line 933 of file fmodifier_ui.c.
References panel_register_cycles().
Referenced by graph_buttons_register().
Referenced by fmodifier_list_space_specific().
bool ANIM_nla_context_strip_ptr | ( | const struct bContext * | C, |
struct PointerRNA * | r_ptr | ||
) |
Referenced by screen_ctx_active_nla_strip().
bool ANIM_nla_context_track_ptr | ( | const struct bContext * | C, |
struct PointerRNA * | r_ptr | ||
) |
Referenced by screen_ctx_active_nla_track().
void ANIM_nla_mapping_apply_fcurve | ( | struct AnimData * | adt, |
struct FCurve * | fcu, | ||
bool | restore, | ||
bool | only_keys | ||
) |
Apply/Unapply NLA mapping to all keyframes in the nominated F-Curve
restore | Whether to map points back to non-mapped time. |
only_keys | Whether to only adjust the location of the center point of beztriples. |
Definition at line 291 of file anim_draw.c.
References ANIM_fcurve_keyframes_loop(), bezt_nlamapping_apply(), bezt_nlamapping_restore(), KeyframeEditData::data, KeyframeEditData::i1, and NULL.
Referenced by actkeys_framejump_exec(), actkeys_select_leftright(), box_select_graphkeys(), draw_fcurve(), fcurve_to_keylist(), get_nearest_fcurve_verts_list(), graphkeys_select_leftright(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), paste_animedit_keys(), posttrans_action_clean(), snap_action_keys(), snap_graph_keys(), special_aftertrans_update__actedit(), special_aftertrans_update__graph(), and sum_selected_keyframes().
struct AnimData* ANIM_nla_mapping_get | ( | bAnimContext * | ac, |
bAnimListElem * | ale | ||
) |
Obtain the AnimData block providing NLA-mapping for the given channel (if applicable).
TODO: do not supply return this if the animdata tells us that there is no mapping to perform.
Definition at line 216 of file anim_draw.c.
References bAnimListElem::adt, ANIMCONT_ACTION, ANIMCONT_CHANNEL, ANIMCONT_DOPESHEET, ANIMCONT_FCURVES, ANIMCONT_NLA, ANIMCONT_SHAPEKEY, ANIMTYPE_NLACURVE, bAnimContext::datatype, ELEM, G, NULL, and bAnimListElem::type.
Referenced by actkeys_find_key_in_list_element(), actkeys_framejump_exec(), actkeys_list_element_to_keylist(), actkeys_mselect_column(), actkeys_select_leftright(), box_select_action(), box_select_graphcurves(), box_select_graphkeys(), columnselect_action_keys(), columnselect_graph_keys(), createTransActionData(), draw_channel_strips(), draw_fcurve(), get_keyframe_extents(), get_nearest_fcurve_verts_list(), graphkeys_click_insert_exec(), graphkeys_mselect_column(), graphkeys_select_leftright(), insert_fcurve_key(), insert_graph_keys(), markers_selectkeys_between(), mirror_action_keys(), mirror_graph_keys(), paste_animedit_keys(), posttrans_action_clean(), region_select_action_keys(), snap_action_keys(), snap_graph_keys(), special_aftertrans_update__actedit(), special_aftertrans_update__graph(), sum_selected_keyframes(), and summary_keyframes_loop().
Unlink the action from animdata if it's empty.
If the action has no F-Curves, unlink it from AnimData if it did not come from a NLA Strip being tweaked.
Definition at line 687 of file anim_channels_edit.c.
References AnimData::action, ADT_NLA_EDIT_ON, BLI_listbase_is_empty(), bAction::curves, AnimData::flag, bAction::id, id_us_min(), and NULL.
Referenced by ANIM_fcurve_delete_from_animdata(), and clear_anim_v3d_exec().
void ANIM_set_active_channel | ( | bAnimContext * | ac, |
void * | data, | ||
eAnimCont_Types | datatype, | ||
eAnimFilter_Flags | filter, | ||
void * | channel_data, | ||
eAnim_ChannelType | channel_type | ||
) |
Set the given animation-channel as the active one for the active context.
Definition at line 62 of file anim_channels_edit.c.
References ACHANNEL_SET_FLAG, ACHANNEL_SETFLAG_CLEAR, bAnimListElem::adt, ADT_UI_ACTIVE, AGRP_ACTIVE, ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIMTYPE_DSARM, ANIMTYPE_DSCACHEFILE, ANIMTYPE_DSCAM, ANIMTYPE_DSCUR, ANIMTYPE_DSGPENCIL, ANIMTYPE_DSHAIR, ANIMTYPE_DSLAM, ANIMTYPE_DSLAT, ANIMTYPE_DSLINESTYLE, ANIMTYPE_DSMAT, ANIMTYPE_DSMBALL, ANIMTYPE_DSMCLIP, ANIMTYPE_DSMESH, ANIMTYPE_DSNTREE, ANIMTYPE_DSPART, ANIMTYPE_DSPOINTCLOUD, ANIMTYPE_DSSIMULATION, ANIMTYPE_DSSKEY, ANIMTYPE_DSSPK, ANIMTYPE_DSTEX, ANIMTYPE_DSVOLUME, ANIMTYPE_DSWOR, ANIMTYPE_FCURVE, ANIMTYPE_FILLACTD, ANIMTYPE_GPLAYER, ANIMTYPE_GROUP, ANIMTYPE_MASKLAYER, ANIMTYPE_NLAACTION, ANIMTYPE_NLACURVE, ANIMTYPE_NLATRACK, ANIMTYPE_SHAPEKEY, BLI_listbase_is_empty(), data, bAnimListElem::data, FCURVE_ACTIVE, filter(), ListBase::first, bActionGroup::flag, FCurve::flag, NlaTrack::flag, AnimData::flag, bGPDlayer::flag, GP_LAYER_ACTIVE, bAnimListElem::next, NLATRACK_ACTIVE, NULL, and bAnimListElem::type.
Referenced by box_select_graphcurves(), click_select_channel_fcurve(), click_select_channel_gplayer(), click_select_channel_group(), drivers_editor_show_exec(), mouse_action_keys(), mouse_graph_keys(), mouse_nla_channels(), and mouse_nla_strips().
Main call to be exported to animation editors.
float ANIM_unit_mapping_get_factor | ( | struct Scene * | scene, |
struct ID * | id, | ||
struct FCurve * | fcu, | ||
short | flag, | ||
float * | r_offset | ||
) |
Get unit conversion factor for given ID + F-Curve.
Definition at line 485 of file anim_draw.c.
References ANIM_UNITCONV_NORMALIZE, ANIM_UNITCONV_RESTORE, DEG2RADF, normalization_factor_get(), PROP_UNIT_ROTATION, ptr, RAD2DEGF, RNA_id_pointer_create(), FCurve::rna_path, RNA_path_resolve_property(), RNA_property_subtype(), RNA_SUBTYPE_UNIT, scene, UnitSettings::system_rotation, Scene::unit, and USER_UNIT_ROT_RADIANS.
Referenced by box_select_graphcurves(), box_select_graphkeys(), draw_fcurve(), draw_fcurve_curve(), draw_fcurve_curve_bezts(), draw_fcurve_curve_samples(), get_nearest_fcurve_verts_list(), graph_draw_driver_debug(), graphkeys_click_insert_exec(), insert_graph_keys(), mirror_graph_keys(), snap_graph_keys(), and sum_selected_keyframes().
void animviz_calc_motionpaths | ( | struct Depsgraph * | depsgraph, |
struct Main * | bmain, | ||
struct Scene * | scene, | ||
ListBase * | targets, | ||
eAnimvizCalcRange | range, | ||
bool | restore | ||
) |
Definition at line 380 of file anim_motion_paths.c.
References AnimData::action, action_to_keylist(), agroup_to_keylist(), ANIMVIZ_CALC_RANGE_CHANGED, ANIMVIZ_CALC_RANGE_CURRENT_FRAME, ANIMVIZ_CALC_RANGE_FULL, ANIMVIZ_RECALC_PATHS, animviz_target_settings_get(), bMotionPath::batch_line, bMotionPath::batch_points, BKE_action_group_find_name(), BKE_animdata_from_id(), BKE_scene_graph_update_tagged(), RenderData::cfra, bActionGroup::channels, CLOG_INFO, bAction::curves, DEG_get_evaluated_object(), DEG_is_active(), DEG_make_active(), DEG_make_inactive(), depsgraph, ED_keylist_create(), ED_keylist_free(), ED_keylist_prepare_for_direct_access(), ELEM, ListBase::first, GPU_BATCH_DISCARD_SAFE, GPU_VERTBUF_DISCARD_SAFE, LISTBASE_FOREACH, LOG, max_ii(), min_ii(), motionpath_calculate_update_range(), motionpath_free_free_tree_data(), motionpath_get_global_framerange(), MOTIONPATH_VIEW_KFACT, motionpaths_calc_bake_targets(), motionpaths_calc_update_scene(), NULL, bAnimVizSettings::path_viewflag, bMotionPath::points_vbo, Scene::r, bAnimVizSettings::recalc, and scene.
Referenced by ED_objects_recalculate_paths(), and ED_pose_recalculate_paths().
struct Depsgraph* animviz_depsgraph_build | ( | struct Main * | bmain, |
struct Scene * | scene, | ||
struct ViewLayer * | view_layer, | ||
struct ListBase * | targets | ||
) |
Definition at line 63 of file anim_motion_paths.c.
References BLI_listbase_count(), DAG_EVAL_VIEWPORT, DEG_graph_build_from_ids(), DEG_graph_new(), depsgraph, ListBase::first, MEM_freeN, MEM_malloc_arrayN, motionpaths_calc_update_scene(), NULL, and scene.
Referenced by ED_objects_recalculate_paths(), and ED_pose_recalculate_paths().
Get list of motion paths to be baked for the given object.
Definition at line 88 of file anim_motion_paths.c.
References ANIMVIZ_RECALC_PATHS, bPose::avs, Object::avs, BLI_addtail(), bPoseChannel::bone, bPose::chanbase, Object::data, ListBase::first, Bone::layer, bArmature::layer, MEM_callocN, MPathTarget::mpath, bPoseChannel::mpath, Object::mpath, bPoseChannel::next, MPathTarget::ob, MPathTarget::pchan, Object::pose, and bAnimVizSettings::recalc.
Referenced by ED_objects_recalculate_paths(), and ED_pose_recalculate_paths().
Update motion path computation range (in ob.avs
or armature.avs
) from user choice in ob.avs.path_range
or arm.avs.path_range
, depending on active user mode.
ob | Object to compute range for (must be provided) |
scene | Used when scene range is chosen. |
Definition at line 343 of file anim_motion_paths.c.
References AnimData::action, Object::adt, ATTR_FALLTHROUGH, bPose::avs, Object::avs, BLI_assert_msg, BLI_listbase_is_empty(), bAction::curves, ED_keylist_all_keys_frame_range(), ED_keylist_create(), ED_keylist_free(), ED_keylist_selected_keys_frame_range(), fcurve_to_keylist(), LISTBASE_FOREACH, Range2f::max, Range2f::min, Object::mode, MOTIONPATH_RANGE_KEYS_ALL, MOTIONPATH_RANGE_KEYS_SELECTED, MOTIONPATH_RANGE_SCENE, OB_MODE_POSE, bAnimVizSettings::path_ef, bAnimVizSettings::path_range, bAnimVizSettings::path_sf, PEFRA, Object::pose, and PSFRA.
Referenced by object_calculate_paths_exec(), object_update_paths_exec(), pose_calculate_paths_exec(), and pose_update_paths_exec().
struct AnimData* ED_actedit_animdata_from_context | ( | const struct bContext * | C, |
struct ID ** | r_adt_id_owner | ||
) |
Action Editor - Action Management. Helper function to find the active AnimData block from the Action Editor context.
Referenced by action_main_region_draw().
void ED_animedit_unlink_action | ( | struct bContext * | C, |
struct ID * | id, | ||
struct AnimData * | adt, | ||
struct bAction * | act, | ||
struct ReportList * | reports, | ||
bool | force_delete | ||
) |
Definition at line 550 of file action_data.c.
References NlaStrip::act, actedit_change_action(), ADT_NLA_EDIT_ON, blender::compositor::area(), BKE_nla_tweakmode_exit(), BKE_nlastrip_free(), BKE_nlatrack_free(), BKE_reportf(), BLI_assert, C, CTX_data_scene(), CTX_wm_area(), DATA_, ListBase::first, AnimData::flag, Scene::flag, bAction::id, id_fake_user_clear(), NlaTrack::name, ID::name, NlaStrip::next, NlaTrack::next, AnimData::nla_tracks, NULL, PointerRNA_NULL, ptr, RNA_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_struct_find_property(), RPT_WARNING, SCE_NLA_EDIT_ON, scene, SPACE_ACTION, NlaTrack::strips, and ID::us.
Referenced by action_unlink_exec(), and nla_action_unlink_exec().
Set up UI configuration for Drivers Editor (drivers editor window) and RNA (mode switching).
Definition at line 38 of file graph_utils.c.
References blender::compositor::area(), BKE_area_find_region_type(), C, View2D::cur, ED_region_visibility_change_update(), SpaceGraph::mode, RGN_FLAG_HIDDEN, RGN_TYPE_UI, RGN_TYPE_WINDOW, SIPO_MODE_DRIVERS, View2D::tot, UI_panel_category_active_set(), ARegion::v2d, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by drivers_editor_show_exec().
void ED_keymap_anim | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 631 of file anim_ops.c.
References WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
void ED_keymap_animchannels | ( | struct wmKeyConfig * | keyconf | ) |
Definition at line 3615 of file anim_channels_edit.c.
References WM_keymap_ensure().
Referenced by ED_spacetypes_keymap().
void ED_nla_postop_refresh | ( | bAnimContext * | ac | ) |
Perform validation & auto-blending/extend refreshes after some operations
Definition at line 59 of file nla_edit.c.
References ANIM_animdata_filter(), ANIM_animdata_freelist(), ANIM_animdata_update(), ANIM_UPDATE_DEPS, ANIMFILTER_ANIMDATA, ANIMFILTER_DATA_VISIBLE, ANIMFILTER_FCURVESONLY, ANIMFILTER_FOREDIT, BKE_nla_validate_state(), bAnimContext::data, bAnimListElem::data, bAnimContext::datatype, filter(), ListBase::first, bAnimListElem::next, NULL, and bAnimListElem::update.
Referenced by nlaedit_add_actionclip_exec(), nlaedit_add_sound_exec(), nlaedit_add_transition_exec(), nlaedit_clear_scale_exec(), nlaedit_delete_exec(), nlaedit_duplicate_exec(), nlaedit_move_down_exec(), nlaedit_move_up_exec(), nlaedit_snap_exec(), nlaedit_split_exec(), nlaedit_swap_exec(), and special_aftertrans_update__nla().
Definition at line 75 of file action_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_enum_set(), TFM_TIME_DUPLICATE, WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 487 of file graph_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), RNA_enum_set(), TFM_TIME_DUPLICATE, WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 143 of file nla_ops.c.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorTypeMacro::ptr, RNA_boolean_set(), WM_operatortype_append_macro(), and WM_operatortype_macro_define().
Referenced by ED_spacemacros_init().
Definition at line 591 of file anim_ops.c.
References ANIM_OT_change_frame(), ANIM_OT_copy_driver_button(), ANIM_OT_driver_button_add(), ANIM_OT_driver_button_edit(), ANIM_OT_driver_button_remove(), ANIM_OT_end_frame_set(), ANIM_OT_keyframe_clear_button(), ANIM_OT_keyframe_clear_v3d(), ANIM_OT_keyframe_delete(), ANIM_OT_keyframe_delete_button(), ANIM_OT_keyframe_delete_by_name(), ANIM_OT_keyframe_delete_v3d(), ANIM_OT_keyframe_insert(), ANIM_OT_keyframe_insert_button(), ANIM_OT_keyframe_insert_by_name(), ANIM_OT_keyframe_insert_menu(), ANIM_OT_keying_set_active_set(), ANIM_OT_keying_set_add(), ANIM_OT_keying_set_path_add(), ANIM_OT_keying_set_path_remove(), ANIM_OT_keying_set_remove(), ANIM_OT_keyingset_button_add(), ANIM_OT_keyingset_button_remove(), ANIM_OT_paste_driver_button(), ANIM_OT_previewrange_clear(), ANIM_OT_previewrange_set(), ANIM_OT_start_frame_set(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
Definition at line 3581 of file anim_channels_edit.c.
References ANIM_OT_channel_select_keys(), ANIM_OT_channels_clean_empty(), ANIM_OT_channels_click(), ANIM_OT_channels_collapse(), ANIM_OT_channels_delete(), ANIM_OT_channels_editable_toggle(), ANIM_OT_channels_expand(), ANIM_OT_channels_fcurves_enable(), ANIM_OT_channels_group(), ANIM_OT_channels_move(), ANIM_OT_channels_rename(), ANIM_OT_channels_select_all(), ANIM_OT_channels_select_box(), ANIM_OT_channels_select_filter(), ANIM_OT_channels_setting_disable(), ANIM_OT_channels_setting_enable(), ANIM_OT_channels_setting_toggle(), ANIM_OT_channels_ungroup(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
ENUM_OPERATORS | ( | eAnimFilter_Flags | , |
ANIMFILTER_TMP_IGNORE_ONLYSEL | |||
) |
Automatically determine a color for the nth F-Curve.
Definition at line 214 of file anim_ipo_utils.c.
References float(), HSV_BANDWIDTH, hsv_to_rgb_v(), and usdtokens::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 32 of file anim_ipo_utils.c.
References FCurve::array_index, BLI_snprintf(), BLI_sprintfN(), BLI_str_quoted_substr(), Freestyle::c, PointerRNA::data, ELEM, FCURVE_DISABLED, FCurve::flag, GS, ID_SCE, MEM_freeN, ID::name, NULL, PointerRNA::owner_id, 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(), TIP_, and PointerRNA::type.
Referenced by acf_fcurve_name(), graph_draw_driven_property_panel(), and graph_panel_properties().
Get color to use for NLA Action channel's background.
Definition at line 52 of file nla_draw.c.
References ADT_NLA_EDIT_ON, ADT_NLA_SOLO_TRACK, color, AnimData::flag, TH_ANIM_ACTIVE, TH_ANIM_INACTIVE, TH_NLA_TWEAK, and UI_GetThemeColor4fv().
Referenced by acf_nlaaction_backdrop(), acf_nlaaction_color(), draw_nla_main_data(), and nla_action_draw_keyframes().