Table of Contents

Module: Lamp ./Lamp.py

The Blender Lamp module

This module provides control over Lamp objects in Blender.

Example:

  from Blender import Lamp
  l = Lamp.New('Spot')
  l.setMode('square', 'shadow')
  ob = Object.New('Lamp')
  ob.link(l)


Functions   
New
_setBufferSize
get
  New 
New ( type="Lamp",  name="Lamp" )

Returns a new Lamp datablock of type type and optional name name

  _setBufferSize 
_setBufferSize ( self,  bufsize )

Set the lamp's buffersize. This function makes sure that a valid bufferSize value is set (unlike setting lamp.bufferSize directly)

  get 
get ( name=None )

If name given, the Lamp name is returned if existing, None otherwise. If no name is given, a list of all Lamps is returned

Classes   
Lamp

Wrapper for Blender Lamp DataBlock


Table of Contents

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