import Blender

d = Blender.MetaBall.Get('Meta')


#print d
#print d.getType()
#print d.getName()
#d.setName('mmm')
#print d.getName()
#d.setName('Meta')
#print d.getName()

nelem = d.getNMetaElems()
print nelem


for str in ['lay','type','selcol','flag','pad','x','y','z','expx','expy','expz','rad','rad2','s','len','maxrad2']:
    print str,"-->",eval("d.getMeta"+str+"(0)")
print;print
for str in ['loc','rot','size']:
    for n in range(3):
        #	print "d.get%s(0,%d)"%(str,n)
        print str,"-->",eval("d.get%s(0,%d)"%(str,n))


print d.rot
#d.rot = [2,1,3]
print d.getNMetaElems1()

