> Campbell Barton <cbarton@metavr.com> wrote:
> 
> In reply Matt  also
> Id realy realy like not to have object type spesific funbctions in Scene 
> 
> or scn.objects
> 
> Matt, I hear your request, do you think this is adequate?
> 
> ob= scn.objects.new(Mesh.Primitives.Cube(2.0))

Well perhaps I'm splitting hairs here, but I'm just thinking on a more conceptual level. When you're working with Blender, you don't first find a collection of objects and add a new object to that collection, which is what the code above looks like it's doing to me. You add the new object to your scene.

This is just from my perspective as someone who (although using the python api more and more these days) is using it, well... for scripting, to automate tasks etc. and not to write big 'applications'. I'd just be happiest if the python API mimicked the Blender user interface as much as possible. I just moved to a new house and don't have internet connected yet, and over the last few days I've been madly putting together my reel, and writing some python scripts to help in stuff I was doing. It was really difficult without the online API reference - I eventually remembered the .py files in /doc that I started using. Maybe this sort of difficulty is just inherent in any API, but I couldn't help but think that it would all be much easier to just 'get things done quickly' and move on if there was a better connection and relevance between Bpy and Blender itself, and that includes a conceptual conenction, instead of it sometimes living in it's own universe beside Blender.

Anyway, that's just my not-so-well informed opinion on this, for what it's worth :)

cheers

Matt

