
Take this for what it's worth, I thought I'd throw this in. It's been said before that one of the goals of the API is to mimic the GUI as much as possible where practical, which I totally support and agree with.

The steps a user takes to add an object is via one of the menus:
Add -> Mesh -> Cube

So to me it would be most logical and well integrated if the API looked like that and followed that structure such as:

scn.add(MESH)  or
scn.add.Mesh()  or whatever

Something like scn.meshes.add() seems very backward in that respect.

It would be very cool too (also following the UI) if you could pass arguments to generate Blender's primitives like:

scn.add.Mesh(SPHERE, segments=32, rings=32)

which is a simple thing that I've wanted for scripting on multiple occasions that is sorely missing from the API for most object types and still kinda clumsy for meshes.

cheers

Matt


> Willian Padovani Germano <wgermano@superig.com.br> wrote:
> 
> Hey theeth,
> 
> Martin Poirier wrote:
> > Just a couple of comments on the proposed additions:
> 
> This is very early material, the actual API, etc. is up to be discussed.
> 
> > scn.objects.new(Types.Mesh)

