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. | |
ImageType : Blender Image. | |
IpoType : Blender Ipo. | |
LampType : Blender Lamp. | |
MaterialType : Blender Material. | |
MetaballType : Blender Metaball. | |
MTexType : Blender MTex -- it links materials to a texture. | |
NMColType : Blender NMCol. | |
NMeshType : Blender NMesh. | |
NMFaceType : Blender NMFace. | |
NMVertType : Blender NMVert. | |
ObjectType : Blender Object. | |
rgbTupleType : Blender rgbTuple. | |
SceneType : A Blender Scene. | |
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. |
ImageTypeBlender Image. |
IpoTypeBlender Ipo. |
LampTypeBlender Lamp. |
MaterialTypeBlender Material. |
MetaballTypeBlender Metaball. |
MTexTypeBlender MTex -- it links materials to a texture. |
NMColTypeBlender NMCol. A mesh rgba colour. |
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. |
rgbTupleTypeBlender rgbTuple. A (red, green, blue) triplet. |
SceneTypeA Blender Scene. Container of all other objects. |
TextTypeBlender Text. |
TextureTypeBlender Texture. |
vectorTypeBlender vector. Used in NMesh. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Sat Nov 29 19:05:57 2003 | http://epydoc.sf.net |