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-04-07 07:32:57 +0400
committerJoshua Leung <aligorith@gmail.com>2007-04-07 07:32:57 +0400
commit655f9a61dee5a308a93c2ac83cba31dbfe0cb062 (patch)
treef706ca179a7cbdca8a7a39106e0c652a1e055668 /source/blender/include
parent999e405543690e08283ef940873af3d660b3bfe2 (diff)
== Clamp-To Constraint (was Patch #4818) ==
This (new) constraint limits the location of an object/bone to the range of locations on a given curve. It works by comparing the location of the owner on one axis, to the extents of the curve's bounding-box on the same axis, to find the location on the curve. Usage Notes: * 'Ob:' field must point to a valid curve object * This curve should have 'Path' turned on in order for this constraint to work. You don't really need to do this as it will be taken care of by the code. * 'Auto' toggle automically determines which axis should be used for the distance estimations/calculations. It is the default option, but may not work that well for some cases. * X/Y/Z toggles can be used to select the axis to use for these calculations. Try to choose the axis along which the curve stretches out for most. Python Notes: Python API access for this constraint is not included in this commit. Will be coming soon.
Diffstat (limited to 'source/blender/include')
-rw-r--r--source/blender/include/butspace.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/include/butspace.h b/source/blender/include/butspace.h
index eb6a9bfeebb..bde3db33376 100644
--- a/source/blender/include/butspace.h
+++ b/source/blender/include/butspace.h
@@ -646,6 +646,7 @@ enum {
B_CONSTRAINT_ADD_RIGIDBODYJOINT,
B_CONSTRAINT_ADD_CHILDOF,
B_CONSTRAINT_ADD_PYTHON,
+ B_CONSTRAINT_ADD_CLAMPTO,
B_CONSTRAINT_INF
};