提供: wiki
< Dev:2.4‎ | Source‎ | Extensions‎ | BLU‎ | Documentation
移動先: 案内検索


Lamp gives the scripter access to Blender lamp data. The Lamp module itself has only two methods =new()= and =get()=. Both return a lamp datum which can be further manipulated by either using methods of the object or by directly using member variables.

-- Create a new Lamp datum of type Hemi
lampdat =
-- Create a new Lamp datum of type Sun with name LuaSun
lampdat2 =, "LuaSun")
-- Get an existing Lamp datum with name "LuaSun"
lampdat3 = Lamp.get("LuaSun")