constructors (Re: [Bf-python] More Proposed API changes.)
Campbell Barton
cbarton at metavr.com
Wed Mar 14 10:54:40 CET 2007
> so what is this? from
> http://members.optusnet.com.au/cjbarton/BPY_API/Bpy-module.html
> ob = scn.objects.new(me) # new object from the mesh
>
> a bug in the example or the doc? is the 'objects' thing different from
> the other collections, but that is undocumented?
>
> ~Toni
>
nope, this is intended. a scenes.objects is similar to bpy.objects, but
it has context as well
scn.objects.selected
scn.objects.context # visible and selected
scn.objects.active
new objects are only created through the scene at the moment,
ob = bpy.objects.new() is possible but we'v discussed and it seems that
having an object without a scene should be discouraged.
More information about the Bf-python
mailing list