[Bf-python] Re: Request for adding a proposed new feature

Willian Padovani Germano wgermano at superig.com.br
Wed Dec 20 20:04:20 CET 2006


Ken Hughes wrote:

> (1) did we decide during the Sunday morning meeting a few weeks ago to 
> use objects.remove() instead of .unlink()?  Or did Cam or I misquote the 
> method earlier?

Campbell had renamed to .unlink, from what I recall (cvs log), may be 
wrong. Better wait for what he says about this.

> (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.

-- 
Willian



More information about the Bf-python mailing list