Blender Git Loki

Git Commits -> Revision 079304d

Revision 079304d by Joshua Leung (master)
April 16, 2009, 07:37 (GMT)
Animato - Drivers with Multiple Targets:

Drivers now support multiple targets which act as 'variables'. The targets have a short 'name' (see later), and reference some property (in much the same way as F-Curves do, using RNA-Paths) which acts as the 'value'.

These named variables can then be used in a Python Expression which relates them to each other for more fine-grained control over the result of the driver. By using only the names of these variables in the expressions, we are able to define expressions/relationships in a much more readable way, as data access is separated from data use. This makes the underlying relationships easier to understand.

By default, if no Python Expression is given, the variables are simply averaged together, so old files won't break. :)

For example, check the following diagram (thanks Cessen/Nathan V from Peach team):
http://download.blender.org/ftp/incoming/250_drivers_mockup_cessen.png


TODO List:
* Depsgraph building for new driver relationships doesn't work yet. This needs to be recoded again, but this new system makes this much easier, since the targets are clearly defined (i.e. no need to parse py expressions to get list of objects)
* Graph Editor interface for editing these needs to be rewritten
* Python function for evaluating these expressions is needed (Campbell?)

Commit Details:

Full Hash: 079304d199f7619f7eb0e8c256953505df1fcb53
SVN Revision: 19752
Parent Commit: 88d394d
Lines Changed: +248, -117

11 Modified Paths:

/source/blender/blenkernel/BKE_fcurve.h (+6, -0) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/fcurve.c (+93, -28) (Diff)
/source/blender/blenkernel/intern/ipo.c (+29, -20) (Diff)
/source/blender/blenloader/intern/readfile.c (+12, -6) (Diff)
/source/blender/blenloader/intern/writefile.c (+8, -4) (Diff)
/source/blender/editors/space_graph/graph_buttons.c (+6, -0) (Diff)
/source/blender/editors/space_outliner/outliner.c (+8, -4) (Diff)
/source/blender/makesdna/DNA_anim_types.h (+33, -24) (Diff)
/source/blender/makesrna/intern/rna_action.c (+50, -31) (Diff)
/source/blender/makesrna/RNA_access.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021