Blender Git Commit Log

Git Commits -> Revision ea4a987

Revision ea4a987 by Joshua Leung (master)
March 16, 2010, 06:18 (GMT)
== Massive Keying Sets Recode ==

After a few days of wrong turns and learning the finer points of RNA-type-subclassing the hard way, this commit finally presents a refactored version of the Keying Sets system (now version 2) based on some requirements from Cessen.

For a more thorough discussion of this commit, see
http://sites.google.com/site/aligorith/keyingsets_2.pdf?attredirects=0&d=1

------

The main highlight of this refactor is that relative Keying Sets have now been recoded so that Python callbacks are run to generate the Keying Set's list of paths everytime the Keying Set is used (to insert or delete keyframes), allowing complex heuristics to be used to determine whether a property gets keyframed based on the current context. These checks may include checking on selection status of related entities, or transform locks.

Built-In KeyingSets have also been recoded, and moved from C and out into Python. These are now coded as Relative Keying Sets, and can to some extent serve as basis for adding new relative Keying Sets. However, these have mostly been coded in a slightly 'modular' way which may be confusing for those not so familiar with Python in general. A usable template will be added soon for more general usage.

Keyframing settings (i.e. 'visual', 'needed') can now be specified on a per-path basis now, which is especially useful for Absolute Keying Sets, where control over this is often beneficial.

Most of the places where Auto-Keyframing is performed have been tidied up for consistency. I'm sure quite a few issues still exist there, but these I'll clean up over the next few days.

Commit Details:

Full Hash: ea4a987fd424de77465f1a2cd95a655ccf42fd31
SVN Revision: 27528
Parent Commit: 604a2b1
Lines Changed: +1269, -1313

2 Added Paths:

/release/scripts/keyingsets/keyingsets_builtins.py (+236, -0) (View)
/release/scripts/keyingsets/keyingsets_utils.py (+170, -0) (View)

19 Modified Paths:

/release/scripts/modules/bpy/utils.py (+2, -2) (Diff)
/source/blender/blenkernel/BKE_animsys.h (+4, -1) (Diff)
/source/blender/blenkernel/intern/anim_sys.c (+37, -30) (Diff)
/source/blender/editors/animation/anim_intern.h (+0, -6) (Diff)
/source/blender/editors/animation/keyframing.c (+17, -41) (Diff)
/source/blender/editors/animation/keyingsets.c (+229, -914) (Diff)
/source/blender/editors/armature/editarmature.c (+42, -30) (Diff)
/source/blender/editors/armature/poselib.c (+19, -42) (Diff)
/source/blender/editors/armature/poseobject.c (+52, -77) (Diff)
/source/blender/editors/armature/poseUtils.c (+13, -12) (Diff)
/source/blender/editors/include/ED_keyframing.h (+64, -22) (Diff)
/source/blender/editors/object/object_transform.c (+46, -38) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+10, -10) (Diff)
/source/blender/editors/transform/transform_conversions.c (+31, -59) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_animation.c (+253, -17) (Diff)
/source/blender/makesrna/intern/rna_animation_api.c (+35, -4) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
/source/blender/windowmanager/intern/wm_init_exit.c (+3, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021