Page MenuHome

patch-Curvedoc.txt

Authored By
Ken Hughes (khughes)
Nov 13 2013, 1:02 PM
Size
7 KB
Subscribers
None

patch-Curvedoc.txt

Index: blender/source/blender/python/api2_2x/Ipocurve.c
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/Ipocurve.c,v
retrieving revision 1.23
diff -u -u -r1.23 Ipocurve.c
--- blender/source/blender/python/api2_2x/Ipocurve.c 24 Apr 2005 19:27:14 -0000 1.23
+++ blender/source/blender/python/api2_2x/Ipocurve.c 22 May 2005 23:26:48 -0000
@@ -78,7 +78,6 @@
/*****************************************************************************/
static PyObject *IpoCurve_getName( C_IpoCurve * self );
static PyObject *IpoCurve_Recalc( C_IpoCurve * self );
-static PyObject *IpoCurve_setName( C_IpoCurve * self, PyObject * args );
static PyObject *IpoCurve_addBezier( C_IpoCurve * self, PyObject * args );
static PyObject *IpoCurve_delBezier( C_IpoCurve * self, PyObject * args );
static PyObject *IpoCurve_setInterpolation( C_IpoCurve * self,
@@ -97,31 +96,25 @@
static PyMethodDef C_IpoCurve_methods[] = {
/* name, method, flags, doc */
{"getName", ( PyCFunction ) IpoCurve_getName, METH_NOARGS,
- "() - Return IpoCurve Data name"},
+ "() - Return IpoCurve name"},
{"Recalc", ( PyCFunction ) IpoCurve_Recalc, METH_NOARGS,
- "() - Return IpoCurve Data name"},
+ "() - Recomputes the current value of the curve"},
{"update", ( PyCFunction ) IpoCurve_Recalc, METH_NOARGS,
- "() - Return IpoCurve Data name"},
- {"setName", ( PyCFunction ) IpoCurve_setName, METH_VARARGS,
- "(str) - Change IpoCurve Data name"},
+ "() - obsolete: use Recalc method instead."},
{"addBezier", ( PyCFunction ) IpoCurve_addBezier, METH_VARARGS,
- "(str) - Change IpoCurve Data name"},
+ "(coordlist) - Adds a Bezier point to a curve"},
{"delBezier", ( PyCFunction ) IpoCurve_delBezier, METH_VARARGS,
- "(int) - delete Bezier point at index"},
+ "(int) - delete Bezier point at specified index"},
{"setInterpolation", ( PyCFunction ) IpoCurve_setInterpolation,
- METH_VARARGS,
- "(str) - Change IpoCurve Data name"},
+ METH_VARARGS, "(str) - Sets the interpolation type of the curve"},
{"getInterpolation", ( PyCFunction ) IpoCurve_getInterpolation,
- METH_NOARGS,
- "(str) - Change IpoCurve Data name"},
+ METH_NOARGS, "() - Gets the interpolation type of the curve"},
{"setExtrapolation", ( PyCFunction ) IpoCurve_setExtrapolation,
- METH_VARARGS,
- "(str) - Change IpoCurve Data name"},
+ METH_VARARGS, "(str) - Sets the extend mode of the curve"},
{"getExtrapolation", ( PyCFunction ) IpoCurve_getExtrapolation,
- METH_NOARGS,
- "(str) - Change IpoCurve Data name"},
+ METH_NOARGS, "() - Gets the extend mode of the curve"},
{"getPoints", ( PyCFunction ) IpoCurve_getPoints, METH_NOARGS,
- "(str) - Change IpoCurve Data name"},
+ "() - Returns list of all bezTriples of the curve"},
{"evaluate", ( PyCFunction ) IpoCurve_evaluate, METH_VARARGS,
"(float) - Evaluate curve at given time"},
{NULL, NULL, 0, NULL}
@@ -394,11 +387,6 @@
Py_INCREF( Py_None );
return Py_None;
-}
-
-static PyObject *IpoCurve_setName( C_IpoCurve * self, PyObject * args )
-{
- return 0;
}
Index: blender/source/blender/python/api2_2x/doc/Curve.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Curve.py,v
retrieving revision 1.11
diff -u -u -r1.11 Curve.py
--- blender/source/blender/python/api2_2x/doc/Curve.py 17 Apr 2005 14:37:40 -0000 1.11
+++ blender/source/blender/python/api2_2x/doc/Curve.py 22 May 2005 23:26:48 -0000
@@ -347,7 +347,7 @@
@return: PyNone
"""
- def isNurb( curve_num):
+ def isNurb( curve_num ):
"""
method used to determine whether a CurNurb is of type Bezier or of type Nurb.
@rtype: integer
@@ -368,6 +368,20 @@
@raise AttributeError: throws exception if curve_num is out of range.
"""
+ def getNumCurves():
+ """
+ Get the number of curves in this Curve Data object.
+ @rtype: integer
+ """
+
+ def getNumPoints( curve_num ):
+ """
+ Get the number of control points in the curve.
+ @type curve_num: integer
+ @param curve_num: zero-based index into list of curves in this Curve
+ @rtype: integer
+ """
+
class CurNurb:
"""
The CurNurb Object
@@ -453,5 +467,3 @@
@rtype: PyNone
@return: PyNone
"""
-
-
Index: blender/source/blender/python/api2_2x/doc/Ipo.py
===================================================================
RCS file: /cvsroot/bf-blender/blender/source/blender/python/api2_2x/doc/Ipo.py,v
retrieving revision 1.24
diff -u -u -r1.24 Ipo.py
--- blender/source/blender/python/api2_2x/doc/Ipo.py 21 May 2005 04:20:57 -0000 1.24
+++ blender/source/blender/python/api2_2x/doc/Ipo.py 22 May 2005 23:26:48 -0000
@@ -258,17 +258,17 @@
This object gives access to generic data from all ipocurves objects in Blender.
Important Notes for Rotation Curves:\n
- For the rotation IpoCurves, the y values for points are in units of 10 degrees. example: 45.0 degrees is stored as 4.50 degrees. These are the same numbers you see in the Transform Properties pupmenu ( NKey ) in the IPO Curve Editor window. Positive rotations are in a counter-clockwise direction, just like in math class.
+ For the rotation IpoCurves, the y values for points are in units of 10 degrees. For example, 45.0 degrees is stored as 4.50 degrees. These are the same numbers you see in the Transform Properties pupmenu ( NKey ) in the IPO Curve Editor window. Positive rotations are in a counter-clockwise direction, just like in math class.
@cvar name: The Curve Data name.
@cvar bezierPoints : The list of the Bezier points.
"""
- def setExtrapolation(extrapolationtype):
+ def setExtrapolation(extendmode):
"""
- Sets the extrapolation type of the curve.
- @type extrapolationtype: string
- @param extrapolationtype: the extrapolatrion type of the curve.
+ Sets the extend mode of the curve.
+ @type extendmode: string
+ @param extendmode: the extend mode of the curve.
Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
@rtype: None
@return: None
@@ -276,25 +276,25 @@
def getExtrapolation():
"""
- Gets the extrapolation type of the curve.
+ Gets the extend mode of the curve.
@rtype: string
- @return: the extrapolation type of the curve.Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
+ @return: the extend mode of the curve. Can be Constant, Extrapolation, Cyclic or Cyclic_extrapolation.
"""
def setInterpolation(interpolationtype):
"""
- Sets the interpolation type of the curve.
+ Sets the interpolation type of the curve.
@type interpolationtype: string
- @param interpolationtype: the interpolatrion type of the curve. Can be Constant, Bezier, or Linear.
+ @param interpolationtype: the interpolation type of the curve. Can be Constant, Bezier, or Linear.
@rtype: None
@return: None
"""
def getInterpolation():
"""
- Gets the interpolation type of the curve.
+ Gets the interpolation type of the curve.
@rtype: string
- @return: the interpolation type of the curve.Can be Constant, Bezier, or Linear.
+ @return: the interpolation type of the curve. Can be Constant, Bezier, or Linear.
"""
def addBezier(coordlist):
@@ -317,7 +317,7 @@
def Recalc():
"""
- Recomputes the curent value of the curve.
+ Recomputes the current value of the curve.
@rtype: None
@return: None
"""

File Metadata

Mime Type
text/x-diff
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
25/08/9886d247dac21c1c40cfe0ca7c6d

Event Timeline