constructors (Re: [Bf-python] More Proposed API changes.)

Ken Hughes khughes at pacific.edu
Mon Mar 12 17:39:38 CET 2007


Something seems inconsistent with this example:

Toni Alatalo wrote:
> Campbell Barton kirjoitti:
>> having bpy.Group() and bpy.groups seems to over complicate things
> 
> then again, Group is already there .. 
> http://members.optusnet.com.au/cjbarton/BPY_API/Group.Group-class.html 
> .. it just misses a constructor.

So you're proposing a constructor here for a BPy Group object....

>> * A new or casual user has to remember that a slightly different word 
>> is used to make the data and another is used to loop on it..
>> * ob = bpy.Mesh(scn, me) - is adding the mesh to scn, seems less logical.
> 
> no, it is not about adding a mesh to scene, it is creating a new Mesh 
> while working on a scene :)

And here you're proposing a BPy Object constructor with mesh data? 
Wouldn't the Mesh constructor return a BPy Mesh?  Or is the constructor 
overloaded and returns different BPy types depending on the context?

ken



More information about the Bf-python mailing list