[Bf-python] Metaballs refactor

Campbell Barton cbarton at metavr.com
Wed Sep 13 21:01:45 CEST 2006


Is anyone against breaking the metaballs api?

If nobody minds, or wants to review, I can double check it and commit, 
and fix any problems that might arise.

Heres a py example.
_______________
from Blender import *
mb= Metaball.Get('mball')
print mb
print len(mb.elements)

mb.wiresize= 0.3
mb.rendersize= 0.3
for el in mb.elements:
        print 'Elem'
        print el.type
        print el.co
        print el.quat
        el.stiffness= 7
        print el.stiffness

el= mb.elements.add() # add a meta elem (must adjust properties after 
adding)
mb.elements.remove(el) # remove the meta elem
_________________________-


Campbell Barton wrote:
> Hey Guys
> Refactored the Metaballs API,  its not compat with the old api...
> https://projects.blender.org/tracker/index.php?func=detail&aid=4986&group_id=9&atid=127 
>
>
> It needs some more testing before adding, but Id like some feedbackon 
> the changes.
> - Cam
> _______________________________________________
> Bf-python mailing list
> Bf-python at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-python


-- 
Campbell J Barton

133 Hope Street
Geelong West, Victoria 3218 Australia

URL:    http://www.metavr.com
e-mail: cbarton at metavr.com
phone: AU (03) 5229 0241



More information about the Bf-python mailing list