Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-06-18 11:41:21 +0400
committerJoshua Leung <aligorith@gmail.com>2007-06-18 11:41:21 +0400
commit01e8789f3f950a15aea9947ebadb1dcdcccf6a7e (patch)
tree6c9d3fa3b93d427728c1a0ce619f765227c9e677 /source/blender/blenkernel/bad_level_call_stubs
parent770291b9ea1ec03d98b6bae4fd2a2d3f0091be41 (diff)
== 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
Diffstat (limited to 'source/blender/blenkernel/bad_level_call_stubs')
-rw-r--r--source/blender/blenkernel/bad_level_call_stubs/stubs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/blenkernel/bad_level_call_stubs/stubs.c b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
index 344f763608c..e76c53fc72c 100644
--- a/source/blender/blenkernel/bad_level_call_stubs/stubs.c
+++ b/source/blender/blenkernel/bad_level_call_stubs/stubs.c
@@ -54,6 +54,7 @@ struct IpoCurve;
struct FluidsimSettings;
struct Render;
struct RenderResult;
+struct bPythonConstraint;
char *getIpoCurveName( struct IpoCurve * icu );
void insert_vert_ipo(struct IpoCurve *icu, float x, float y);
@@ -124,6 +125,16 @@ int BPY_button_eval(char *expr, double *value)
return 0;
}
+/* constraint.c */
+void BPY_pyconstraint_eval(struct bPythonConstraint *con, float obmat[][4], short ownertype, void *ownerdata, float targetmat[][4])
+{
+}
+int BPY_pyconstraint_targets(struct bPythonConstraint *con, float targetmat[][4])
+{
+ return 0;
+}
+
+
/* writefile.c */
/* struct Oops; */
void free_oops(struct Oops *oops){}