Updated docs not to use Object.New() in examples, use scn.objects.*

Bugfix from ZanQdo, MOT files wouldent load in lightwave. also made some minor improvements.
This commit is contained in:
2007-01-27 02:15:14 +00:00
parent c7b50435da
commit 853785782e
12 changed files with 96 additions and 116 deletions

View File

@@ -12,11 +12,11 @@ This module provides control over B{Lamp Data} objects in Blender.
Example::
from Blender import Lamp
from Blender import Lamp, Scene
l = Lamp.New('Spot') # create new 'Spot' lamp data
l.setMode('Square', 'Shadow') # set these two lamp mode flags
ob = Object.New('Lamp') # create new lamp object
ob.link(l) # link lamp obj with lamp data
scn = Scene.GetCurrent()
ob = scn.objects.new(l)
@type Types: read-only dictionary
@var Types: The lamp types.