Table of Contents

Class: Camera ./Camera.py

Wrapper for Camera DataBlock

Attributes

lens

The lens value

clipStart

The clipping start of the view frustum

clipEnd

The end clipping plane of the view frustum

type

The camera type: 0: perspective camera, 1: orthogonal camera - (see Types)

mode

Drawing mode; see Modes

Base Classes   
shadow.hasIPO
Methods   
__init__
__repr__
getType
setMode
setType
  __init__ 
__init__ ( self,  object )

  __repr__ 
__repr__ ( self )

  getType 
getType ( self )

Returns camera type: "ortho" or "persp"

  setMode 
setMode ( self,  *modes )

Sets Camera modes the nice way, instead of direct access of the mode member. This function takes a variable number of string arguments of the types listed in self.Modes.

Example:

  c = Camera.New()
  c.setMode('showMist', 'showLimits')

Exceptions   
TypeError, "mode must be one of %s" % self.Modes.keys()
  setType 
setType ( self,  type )

Sets Camera type to type which must be one of ["persp", "ortho"]


Table of Contents

This document was automatically generated on Mon Feb 25 13:52:14 2002 by HappyDoc version r1_5