Table of Contents

Class: Lamp ./Lamp.py

Wrapper for Blender Lamp DataBlock

Attributes

mode

Lamp mode value - see EditButtons. Do not access directly See setMode()

type

Lamp type value - see EditButtons. No direct access, please. See setType()

col

RGB vector (R, G, B) of lamp colour

energy

Intensity (float)

dist

clipping distance of a spot lamp or decay range

spotSize

float angle (in degrees) of spot cone (between 0.0 and 180.0)

spotBlend

value defining the blurriness of the spot edge

haloInt

Halo intensity

clipStart

shadow buffer clipping start

clipStart

shadow buffer clipping end

bias

The bias value for the shadowbuffer routine

softness

The filter value for the shadow blurring

samples

Number of samples in shadow calculation - the larger, the better

bufferSize

Size of the shadow buffer which should be one of: [512, 768, 1024, 1536, 2560]

haloStep

Number of steps in halo calculation - the smaller, the the better (and slower). A value of 0 disables shadow halo calculation

Base Classes   
shadow.hasIPO
shadow.hasModes
Methods   
__repr__
getBufferSize
getMode
getType
setMode
setType
  __repr__ 
__repr__ ( self )

  getBufferSize 
getBufferSize ( self )

  getMode 
getMode ( self )

Returns the Lamp modes as a list of strings

  getType 
getType ( self )

Returns the lamp's type as string. See setType()

  setMode 
setMode ( self,  *args )

Set the Lamp mode of Lamp self. This function takes a variable number of string arguments of the types listed in self.Modes.

Example:

    l = Lamp.New()
    l.setMode('quad', 'shadow')

  setType 
setType ( self,  name )

Set the Lamp type of Lamp self. name must be a string of:

  • Lamp: A standard point light source

  • Spot: A spot light

  • Sun : A unidirectional light source, very far away (like a Sun!)

  • Hemi: A diffuse hemispherical light source (daylight without sun)

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

Table of Contents

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