From bce2c02fdd6ebaf88ffc0950e87de96b0b65377f Mon Sep 17 00:00:00 2001 From: Stephen Swaney Date: Wed, 21 Jul 2004 21:01:15 +0000 Subject: 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. --- source/blender/python/SConscript | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/python/SConscript') diff --git a/source/blender/python/SConscript b/source/blender/python/SConscript index 971cc248eba..1c3c1f4bf91 100644 --- a/source/blender/python/SConscript +++ b/source/blender/python/SConscript @@ -20,6 +20,7 @@ source_files = ['BPY_interface.c', 'api2_2x/Lamp.c', 'api2_2x/Lattice.c', 'api2_2x/Library.c', + 'api2_2x/CurNurb.c', 'api2_2x/Curve.c', 'api2_2x/Armature.c', 'api2_2x/Bone.c', -- cgit v1.2.3