Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/include/ED_keyframing.h
| Show All 32 Lines | |||||
| struct ID; | struct ID; | ||||
| struct ListBase; | struct ListBase; | ||||
| struct Main; | struct Main; | ||||
| struct Scene; | struct Scene; | ||||
| struct KeyingSet; | struct KeyingSet; | ||||
| struct AnimationEvalContext; | |||||
| struct BezTriple; | struct BezTriple; | ||||
| struct FCurve; | struct FCurve; | ||||
| struct bAction; | struct bAction; | ||||
| struct bPoseChannel; | struct bPoseChannel; | ||||
| struct ReportList; | struct ReportList; | ||||
| struct bContext; | struct bContext; | ||||
| ▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| /* Secondary Keyframing API calls: | /* Secondary Keyframing API calls: | ||||
| * Use this to insert a keyframe using the current value being keyframed, in the | * Use this to insert a keyframe using the current value being keyframed, in the | ||||
| * nominated F-Curve (no creation of animation data performed). Returns success. | * nominated F-Curve (no creation of animation data performed). Returns success. | ||||
| */ | */ | ||||
| bool insert_keyframe_direct(struct ReportList *reports, | bool insert_keyframe_direct(struct ReportList *reports, | ||||
| struct PointerRNA ptr, | struct PointerRNA ptr, | ||||
| struct PropertyRNA *prop, | struct PropertyRNA *prop, | ||||
| struct FCurve *fcu, | struct FCurve *fcu, | ||||
| float cfra, | const struct AnimationEvalContext *anim_eval_context, | ||||
| eBezTriple_KeyframeType keytype, | eBezTriple_KeyframeType keytype, | ||||
| struct NlaKeyframingContext *nla, | struct NlaKeyframingContext *nla, | ||||
| eInsertKeyFlags flag); | eInsertKeyFlags flag); | ||||
| /* -------- */ | /* -------- */ | ||||
| /* Main Keyframing API calls: | /* Main Keyframing API calls: | ||||
| * Use this to create any necessary animation data, and then insert a keyframe | * Use this to create any necessary animation data, and then insert a keyframe | ||||
| * using the current value being keyframed, in the relevant place. Returns success. | * using the current value being keyframed, in the relevant place. Returns success. | ||||
| */ | */ | ||||
| int insert_keyframe(struct Main *bmain, | int insert_keyframe(struct Main *bmain, | ||||
| struct ReportList *reports, | struct ReportList *reports, | ||||
| struct ID *id, | struct ID *id, | ||||
| struct bAction *act, | struct bAction *act, | ||||
| const char group[], | const char group[], | ||||
| const char rna_path[], | const char rna_path[], | ||||
| int array_index, | int array_index, | ||||
| float cfra, | const struct AnimationEvalContext *anim_eval_context, | ||||
| eBezTriple_KeyframeType keytype, | eBezTriple_KeyframeType keytype, | ||||
| struct ListBase *nla_cache, | struct ListBase *nla_cache, | ||||
| eInsertKeyFlags flag); | eInsertKeyFlags flag); | ||||
| /* Main Keyframing API call: | /* Main Keyframing API call: | ||||
| * Use this to delete keyframe on current frame for relevant channel. | * Use this to delete keyframe on current frame for relevant channel. | ||||
| * Will perform checks just in case. */ | * Will perform checks just in case. */ | ||||
| int delete_keyframe(struct Main *bmain, | int delete_keyframe(struct Main *bmain, | ||||
| ▲ Show 20 Lines • Show All 305 Lines • ▼ Show 20 Lines | |||||
| /* Lesser Keyframe Checking API call: | /* Lesser Keyframe Checking API call: | ||||
| * - Returns whether the current value of a given property differs from the interpolated value. | * - Returns whether the current value of a given property differs from the interpolated value. | ||||
| * - Used for button drawing. | * - Used for button drawing. | ||||
| */ | */ | ||||
| bool fcurve_is_changed(struct PointerRNA ptr, | bool fcurve_is_changed(struct PointerRNA ptr, | ||||
| struct PropertyRNA *prop, | struct PropertyRNA *prop, | ||||
| struct FCurve *fcu, | struct FCurve *fcu, | ||||
| float frame); | const struct AnimationEvalContext *anim_eval_context); | ||||
| /** | /** | ||||
| * Main Keyframe Checking API call: | * Main Keyframe Checking API call: | ||||
| * Checks whether a keyframe exists for the given ID-block one the given frame. | * Checks whether a keyframe exists for the given ID-block one the given frame. | ||||
| * - It is recommended to call this method over the other keyframe-checkers directly, | * - It is recommended to call this method over the other keyframe-checkers directly, | ||||
| * in case some detail of the implementation changes... | * in case some detail of the implementation changes... | ||||
| * - frame: the value of this is quite often result of #BKE_scene_frame_get() | * - frame: the value of this is quite often result of #BKE_scene_frame_get() | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines | |||||