Page Menu
Home
Search
Configure Global Search
Log In
Files
F2159
Pose.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Aron Cristian (criller)
Nov 13 2013, 1:02 PM
Size
2 KB
Subscribers
None
Pose.patch
View Options
Index: Pose.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Pose.c,v
retrieving revision 1.9
diff -u -r1.9 Pose.c
--- source/blender/python/api2_2x/Pose.c 24 Apr 2006 16:30:04 -0000 1.9
+++ source/blender/python/api2_2x/Pose.c 24 Apr 2006 16:32:28 -0000
@@ -736,6 +736,33 @@
// printf("This is not implemented yet...");
// return 1;
//}
+//------------------------PoseBone.limitmin (getter)
+//Gets the pose bone limitmin value
+static PyObject *PoseBone_getLimitMin(BPy_PoseBone *self, void *closure)
+{
+ return newVectorObject(self->posechannel->limitmin, 3, Py_NEW);
+}
+//------------------------PoseBone.limitmin (setter)
+//Sets the pose bone limitmin value
+static int PoseBone_setLimitMin(BPy_PoseBone *self, PyObject *value, void *closure)
+{
+ return EXPP_intError(PyExc_AttributeError, "%s%s%s",
+ sPoseBoneError, ".limitmin: ", "not able to set this property");
+}
+
+//------------------------PoseBone.limitmax (getter)
+//Gets the pose bone limitmax value
+static PyObject *PoseBone_getLimitMax(BPy_PoseBone *self, void *closure)
+{
+ return newVectorObject(self->posechannel->limitmax, 3, Py_NEW);
+}
+//------------------------PoseBone.limitmax (setter)
+//Sets the pose bone limitmax value
+static int PoseBone_setLimitMax(BPy_PoseBone *self, PyObject *value, void *closure)
+{
+ return EXPP_intError(PyExc_AttributeError, "%s%s%s",
+ sPoseBoneError, ".limitmax: ", "not able to set this property");
+}
//------------------------PoseBone.head (getter)
//Gets the pose head position
static PyObject *PoseBone_getHead(BPy_PoseBone *self, void *closure)
@@ -784,6 +811,10 @@
"The pose bone's tail positon", NULL},
//{"constraints", (getter)PoseBone_getConstraints, (setter)PoseBone_setConstraints,
// "The list of contraints that pertain to this pose bone", NULL},
+ {"limitMin", (getter)PoseBone_getLimitMin, (setter)PoseBone_setLimitMin,
+ "The pose bone dof min", NULL},
+ {"limitMax", (getter)PoseBone_getLimitMax, (setter)PoseBone_setLimitMax,
+ "The pose bone dof max", NULL},
{NULL, NULL, NULL, NULL, NULL}
};
//------------------------tp_dealloc
File Metadata
Details
Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a6/dc/1a94b7054e5845964283c509b388
Event Timeline
Log In to Comment