So i can create metaballs all day with bpy.ops (im in 2.56a btw)
but i’d rather use bpy.data for a number of reasons.
I can create the object, the metaball, the elements, and seemingly set the properties (ie radius, type) the circles appear but the actual metaballs do not.
mglob = bpy.data.metaballs.new('mglob000')
mglob.threshold = 1.0
oglob = bpy.data.objects.new('oglob000', mglob)
oglob.data = mglob
eglob = mglob.elements.new('BALL')
eglob.co = [0.1,0.1,0.1]
eglob.radius = 1.0
eglob.stiffness = 1.0
mglob.elements.active = eglob
scn.objects.link(oglob)
Also - I would also like to add a custom property to each of these metaballs as I create them. I assume I can do that with bpy.ops.wm.propertys_add() once I can assign a name and a datapath.
anyone else had any success adding/manipulating custom properties in py?
Thanks for your help.