Module Metaball :: Class Metaelem
[hide private]
[frames] | no frames]

Class Metaelem

source code

The Metaelem object

This gives direct access to meta element data within a metaball.

Instance Variables [hide private]
Vector co
The location of this element.
Vector dims
Element dimensions.
bool hide
Element hidden status.
bool negative
Element negative volume status.
Quaternion quat
Element rotation.
float radius
Element radius.
float stiffness
Element stiffness.
int type
The type of the metaball.
Instance Variable Details [hide private]

dims

Element dimensions. Values clamped between 0 and 20 on all axies.
Type:
Vector

radius

Element radius. Value clamped between 0 and 5000.
Type:
float

stiffness

Element stiffness. Value clamped between 0 and 10.
Type:
float

type

The type of the metaball. Values must be from Types

Example:

       from Blender import Metaball
       mb= Metaball.Get('mb')
       for el in mb.elements:
         el.type= Metaball.Types.CUBE
Type:
int