Module Types
[frames | no frames]

Module Types

The Blender.Types submodule

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.
  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.
  vectorType - Blender vector.

Variable Details

ArmatureType

Blender Armature. The "skeleton", for animating and deforming objects.

BoneType

Blender Bone. Bones are, obviously, the "pieces" of an Armature.

bufferType

Blender buffer. A contiguous piece of storage, used in BGL.

ButtonType

Blender Button. One of the Draw widgets.

CameraType

Blender Camera.

constantType

Blender constant. A constant dictionary.

CurveType

Blender Curve.

ImageType

Blender Image.

IpoType

Blender Ipo.

LampType

Blender Lamp.

MaterialType

Blender Material.

MetaballType

Blender Metaball.

NMColType

Blender NMCol. A mesh rgba colour.

NMeshType

Blender NMesh. The mesh structure.

NMFaceType

Blender NMFace. A mesh face, with one (a point), two (an edge), three (a triangular face) or four (a quad face) vertices.

NMVertType

Blender NMVert. A mesh vertex.

ObjectType

Blender Object. The base object, linked to its specific data at its .data member variable.

rgbTupleType

Blender rgbTuple. A (red, green, blue) triplet.

SceneType

A Blender Scene. Container of all other objects.

TextType

Blender Text.

vectorType

Blender vector. Used in NMesh.

Generated by Epydoc 1.1 on Wed Aug 13 19:17:14 2003 http://epydoc.sf.net