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

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

Module

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

-- Create a new object of type Lamp
lampob = Object.new(Object.Lamp)
-- Create a new object of type Camera with name [[BlenderDev/LuaCam|LuaCam]]
camob = Object.new(Object.Camera, "LuaCam.html")
-- Get an existing Blender object with name "Spot"
lampob2 = Object.get("Spot")

Back