Blender Git Commit Log

Git Commits -> Revision 01e8789

Revision 01e8789 by Joshua Leung (master)
June 18, 2007, 07:41 (GMT)
== PyConstraints ==

At last! The ability to code constraints in Python. This opens up many interesting rigging possibilities, as well as making prototyping constraints easier.

* A PyConstraint script must begin with the line
#BPYCONSTRAINT
* It must also define a doConstraint function, which performs the core actions of the constraint.
* PyConstraints use IDProperties to store custom properties for each PyConstraint instance. The scripter can choose which of these ID-Properties to expose to a user to control the behaviour of the constraint. This must be done using the Draw.PupBlock method.

Credits to Joe Eager (joeedh) for coding the original patch on which this is based. I've made heavy revisions to large parts of the patch.

For more detailed information, and some demo scripts, see the following page:
http://aligorith.googlepages.com/pyconstraints2

Commit Details:

Full Hash: 01e8789f3f950a15aea9947ebadb1dcdcccf6a7e
SVN Revision: 10954
Parent Commit: 770291b
Lines Changed: +862, -37

13 Modified Paths:

/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+11, -0) (Diff)
/source/blender/blenkernel/intern/constraint.c (+87, -1) (Diff)
/source/blender/blenkernel/intern/idprop.c (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+21, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+10, -0) (Diff)
/source/blender/include/BIF_editconstraint.h (+7, -0) (Diff)
/source/blender/makesdna/DNA_constraint_types.h (+20, -0) (Diff)
/source/blender/python/api2_2x/Constraint.c (+2, -0) (Diff)
/source/blender/python/BPY_extern.h (+6, -1) (Diff)
/source/blender/python/BPY_interface.c (+383, -5) (Diff)
/source/blender/src/buttons_object.c (+73, -2) (Diff)
/source/blender/src/editconstraint.c (+129, -8) (Diff)
/source/blender/src/header_text.c (+112, -20) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021