From 982d45162b5bf02127b16a9ede693bca99431427 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Sat, 18 Aug 2007 06:17:50 +0000 Subject: == PyConstraints == I've added the ability for PyConstraints to define a function (doDriver) that is able to directly modify values of the owner/target, so that certain setups can be created reliably. Users should take note that this is against the basic concept of what a constraint does, and that under no circumstances may they set the values of any variables controlling the transforms. For more details, check out the information in the PyConstraint template script. I've also updated PyConstraints to be aware of geometry targets. The script template has been updated with this information. --- source/blender/python/BPY_extern.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blender/python/BPY_extern.h') diff --git a/source/blender/python/BPY_extern.h b/source/blender/python/BPY_extern.h index ee7afe7dcf6..0e662c38d31 100644 --- a/source/blender/python/BPY_extern.h +++ b/source/blender/python/BPY_extern.h @@ -47,6 +47,7 @@ struct Script; /* BPI_script.h */ struct ScrArea; /* DNA_screen_types.h */ struct bScreen; /* DNA_screen_types.h */ struct bPythonConstraint; /* DNA_constraint_types.h */ +struct bConstraintOb; /* BKE_constraint.h */ #ifdef __cplusplus extern "C" { #endif @@ -71,6 +72,7 @@ extern "C" { void BPy_Free_DrawButtonsList(void); void BPY_pyconstraint_eval(struct bPythonConstraint *con, float ownermat[][4], float targetmat[][4]); + void BPY_pyconstraint_driver(struct bPythonConstraint *con, struct bConstraintOb *cob, struct Object *target, char subtarget[]); void BPY_pyconstraint_settings(void *arg1, void *arg2); int BPY_pyconstraint_targets(struct bPythonConstraint *con, float targetmat[][4]); int BPY_is_pyconstraint(struct Text *text); -- cgit v1.2.3