Dev:2.4/Source/Extensions/BLU/Documentation/Lamp

提供: wiki
< Dev:2.4‎ | Source‎ | Extensions‎ | BLU‎ | Documentation
2018年6月29日 (金) 02:45時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Module

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 = Lamp.new(Lamp.Hemi)
-- Create a new Lamp datum of type Sun with name LuaSun
lampdat2 = Lamp.new(Lamp.Sun, "LuaSun")
-- Get an existing Lamp datum with name "LuaSun"
lampdat3 = Lamp.get("LuaSun")

Back