[Bf-python] Python nodes API having issues with inheritance

Paul Kilgo paulkilgo at gmail.com
Tue May 21 13:43:06 CEST 2013


Thank you for your reply!

So, sometime shortly after the 2.67 release, someone put forth a commit
which deleted all of the code in question. I downloaded yesterday's SVN
snapshot and inheritance did seem to work at least for the init() method,
so I guess maybe that bit of code was breaking the inheritance hierarchy. I
have a theory why but it doesn't really matter at this point.


On Tue, May 21, 2013 at 1:59 AM, Dan Eicher <dan at trollwerks.org> wrote:

> Hi,
>
> From that (somewhat bizarre) snippet of metaclass voodoo it looks like you
> should just be able to to call super().init() down through your chain of
> subclasses and it'll eventually get to the wrapped call to create_sockets().
>
> Or, if my metaclass knowledge is up to snuff, you'll end up making
> multiple calls to create_sockets() and end up with a whole bunch of extra
> ones, dunno really...
>
> Dan
>
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>
>


-- 
Paul Kilgo
paulkilgo at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20130521/cd0229b9/attachment.html>


More information about the Bf-python mailing list