[Bf-python] Re: Request for adding a proposed new feature
Ken Hughes
khughes at pacific.edu
Wed Dec 20 20:16:11 CET 2006
Willian Padovani Germano wrote:
> Ken Hughes wrote:
>> (2) I was looking into adding the "delete=True" support this morning
>> when I remembered that it doesn't matter whether the objects are
>> created by Object.New(), Object.Get() or scn.objects: since they're
>> all BPy_Objects all objects get their user count incremented, so the
>> nice new scene.objects API isn't going to fix that problem :-(
>
> Well, there was a time when BPY didn't mess with Blender reference
> counts (id->user), maybe that was wiser. If needed we could use the fake
> user or add some other hook to preserve data while it's being referenced
> by Python. Anyway, this is a topic that deserves proper discussion, with
> pros and cons, I'm not sure I remember all the issues right now.
Agreed. IIRC the main argument for making Python a user is that scripts
could be working on objects when they are suddenly deleted in the
Blender GUI, and then the script would fail. I believe that was before
the fakeUser support was added, although I don't really know what that
does. I think Michael Reimpell was one of the proponents of adding
this; maybe he's still lurking here and can give some insight.
Ken
More information about the Bf-python
mailing list