Module Metaball
[frames | no frames]

Module Metaball

The Blender.Metaball submodule

This module provides access to the Metaball Data in Blender.

Example:
import Blender

ob =  Blender.Object.New("Mball","mb")
mb = Blender.Metaball.New()
for i in range(20):
  mb.addMetaelem([0, float(i),1.0,1.0, 2.0,1,2.0,1.0,1.0,1.0])
ob.link(mb)
sc = Blender.Scene.getCurrent()
sc.link(ob)

Classes
Metaball This metaball gives access to generic data from all metaballs in Blender.

Function Summary
Blender Metaball or a list of Blender Metaballs Get(name)
Get the Metaball from Blender.
Blender Metaball New(name)
Creates a new Metaball.

Function Details

Get(name)

Get the Metaball from Blender.
Parameters:
name - The name of the requested Metaball.
           (type=string)
Returns:
It depends on the 'name' parameter:
  • (name): The Metaball with the given name;
  • (): A list with all Metaballs in the current scene.

           (type=Blender Metaball or a list of Blender Metaballs)

New(name)

Creates a new Metaball.
Parameters:
name - The name of the metaball. If this parameter is not given (or not valid) blender will assign a name to the metaball.
           (type=string)
Returns:
The created Metaball.
           (type=Blender Metaball)

Generated by Epydoc 2.1 on Tue Jan 4 13:43:05 2005 http://epydoc.sf.net