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:
authorStephen Swaney <sswaney@centurytel.net>2004-07-22 01:01:15 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-07-22 01:01:15 +0400
commitbce2c02fdd6ebaf88ffc0950e87de96b0b65377f (patch)
tree708d01a564f56cb729d8e536c8de15c70f7349dd /source/blender/python/api2_2x/Types.h
parent1c5302e68b47c03fd60ab5edefb4a16d6294b7a7 (diff)
New Curve method Curve.appendPoint( numcurve, newpoint ) to add
points to a Curve. New supporting module CurNurb to provide access to the curves in a Curve and their associated points. Curve module now supports Python iterator and sequence protocols. This allows typical python programming idioms using 'for' statement and the [] operator. # example 1 for curve in a_curve: for point in curve: print point #example 2 curnurb = a_curve[0] curnurb.append( [1,1,1,1] ) Still under construction. Epydoc will follow.
Diffstat (limited to 'source/blender/python/api2_2x/Types.h')
-rw-r--r--source/blender/python/api2_2x/Types.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Types.h b/source/blender/python/api2_2x/Types.h
index 25476ef76a7..032bd05d215 100644
--- a/source/blender/python/api2_2x/Types.h
+++ b/source/blender/python/api2_2x/Types.h
@@ -36,7 +36,9 @@
extern PyTypeObject Action_Type, Armature_Type;
extern PyTypeObject BezTriple_Type, Bone_Type, Build_Type, Button_Type;
-extern PyTypeObject Camera_Type, Curve_Type;
+extern PyTypeObject Camera_Type;
+extern PyTypeObject CurNurb_Type;
+extern PyTypeObject Curve_Type;
extern PyTypeObject Effect_Type;
extern PyTypeObject Image_Type, Ipo_Type, IpoCurve_Type;
extern PyTypeObject Lamp_Type, Lattice_Type;