[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/include BIF_space.h blender/source/blender/python/api2_2x Object.c blender/source/blender/python/api2_2x/doc Object.py blender/source/blender/src editarmature.c editcurve.c header_view3d.c meshtools.c space.c

Martin Poirier theeth at yahoo.com
Mon Jan 2 16:06:50 CET 2006



--- Stephen Swaney <sswaney at centurytel.net> wrote:

> On Mon, Jan 02, 2006 at 11:27:10PM +1100, Campbell
> Barton wrote:
> > How about join takes a list of BPython pbjects and
> joins those? would 
> > that be acceptable?
> 
> Martin raises some very good points.  As is, this
> really does
> not fit into an object oriented API.
> 
> I would rather see an Object.Join() that takes a
> list of
> objects to be joined and returns the newly created
> object.
> This way the scripter has some explicit idea as to
> what is
> going on.  The method signature would look like
> this:
> 
>   newly_created_obj Object.Join( 
> list-of-objs-to-be-joined )

Or even better, since all the object's data are joined
into another object, it could be a method of BPy
Object that takes a sequence of object to join with.

ob.join([sequence of obs])

where ob is both the target and final result object.

Martin


		
__________________________________________ 
Yahoo! DSL – Something to write home about. 
Just $16.99/mo. or less. 
dsl.yahoo.com 



More information about the Bf-committers mailing list