Home | Trees | Index | Help |
|
---|
Module Types |
|
This module is a dictionary of Blender Python types, for type checking.
Example:import Blender from Blender import Types, Object, NMesh, Camera, Lamp # objs = Object.Get() # a list of all objects in the current scene for o in objs: print print o, type(o) data = o.getData() print type(data) if type(data) == Types.NMeshType: if len(data.verts): print "its vertices are obviously of type:", type(data.verts[0]) print "and its faces:", Types.NMFaceType elif type(data) == Types.CameraType: print "It's a Camera." elif type(data) == Types.LampType: print "Let there be light!"
Variable Summary | |
---|---|
ArmatureType : Blender Armature. | |
BoneType : Blender Bone. | |
bufferType : Blender buffer. | |
ButtonType : Blender Button. | |
CameraType : Blender Camera. | |
constantType : Blender constant. | |
CurveType : Blender Curve. | |
eulerType : Blender euler. | |
ImageType : Blender Image. | |
IpoType : Blender Ipo. | |
LampType : Blender Lamp. | |
MaterialType : Blender Material. | |
matrix_Type : Blender matrix. | |
MColType : Blender MCol. | |
MEdgeType : Blender MEdge. | |
MeshType : Blender Mesh. | |
MetaballType : Blender Metaball. | |
MFaceType : Blender MFace. | |
MTexType : Blender MTex. | |
MVertType : Blender MVert. | |
NMColType : Blender NMCol. | |
NMeshType : Blender NMesh. | |
NMFaceType : Blender NMFace. | |
NMVertType : Blender NMVert. | |
ObjectType : Blender Object. | |
PVertType : Blender MVert. | |
quaternionType : Blender quaternion. | |
rgbTupleType : Blender rgbTuple. | |
SceneType : A Blender Scene. | |
Text3dType : Blender Text3d. | |
TextType : Blender Text. | |
TextureType : Blender Texture. | |
vectorType : Blender vector. |
Variable Details |
---|
ArmatureTypeBlender Armature. The "skeleton", for animating and deforming objects. |
BoneTypeBlender Bone. Bones are, obviously, the "pieces" of an Armature. |
bufferTypeBlender buffer. A contiguous piece of storage, used in BGL. |
ButtonTypeBlender Button. One of the Draw widgets. |
CameraTypeBlender Camera. |
constantTypeBlender constant. A constant dictionary. |
CurveTypeBlender Curve. |
eulerTypeBlender euler. |
ImageTypeBlender Image. |
IpoTypeBlender Ipo. |
LampTypeBlender Lamp. |
MaterialTypeBlender Material. |
matrix_TypeBlender matrix. |
MColTypeBlender MCol. A mesh rgba color. |
MEdgeTypeBlender MEdge. A mesh edge, with two vertices |
MeshTypeBlender Mesh. The mesh structure. |
MetaballTypeBlender Metaball. |
MFaceTypeBlender MFace. A mesh face, with three (a triangular face) or four (a quad face) vertices. |
MTexTypeBlender MTex. Links materials to a texture. |
MVertTypeBlender MVert. A mesh vertex which wraps a Blender mesh vertex (typically an object returned from the mesh.verts sequence). |
NMColTypeBlender NMCol. A mesh rgba color. |
NMeshTypeBlender NMesh. The mesh structure. |
NMFaceTypeBlender NMFace. A mesh face, with one (a point), two (an edge), three (a triangular face) or four (a quad face) vertices. |
NMVertTypeBlender NMVert. A mesh vertex. |
ObjectTypeBlender Object. The base object, linked to its specific data at its .data member variable. |
PVertTypeBlender MVert. A mesh vertex which does not wrap a Blender mesh vertex (returned fromBlender.Mesh.MVert() ).
|
quaternionTypeBlender quaternion. Used in armatures. |
rgbTupleTypeBlender rgbTuple. A (red, green, blue) triplet. |
SceneTypeA Blender Scene. Container of all other objects. |
Text3dTypeBlender Text3d. |
TextTypeBlender Text. |
TextureTypeBlender Texture. |
vectorTypeBlender vector. Used in NMesh, Mesh and elsewhere. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Dec 22 22:38:14 2005 | http://epydoc.sf.net |