import Blender
#ccc = Blender.MetaBall.New()
#ccc = Blender.MetaBall.New("popo")

c = Blender.MetaBall.Get('pipi')
print c
print dir(c)
print c.getName()
print c.setName('pipi')
print c.getName()
print c.getNMetaElems()
print c.getMetatype(0)
print c.getMetatype(1)
#print c.setMetatype(1,255)
print c.getMetatype(1)
print c.getMetax(1)
print c.setMetax(1,-2)
print c.getMetax(1)
print c.getMetarad(1)
print c.setMetarad(1,-2)
print c.getMetarad(1)
print c.getsize()
print c.setsize(2,3,4)
print c.getsize()


print c.getMetadata("lay",1)
print c.setMetadata("lay",1,3)
print c.getMetadata("lay",1)

#test floats
print c.getMetadata("x",1)
print c.setMetadata("x",1,1.3)
print c.getMetadata("x",1)
#test floats as ints
print c.getMetadata("x",1)
print c.setMetadata("x",1,42)
print c.getMetadata("x",1)
