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

提供: wiki
< Dev:2.4‎ | Source‎ | Extensions‎ | BLU‎ | Documentation
2011年6月20日 (月) 02:15時点におけるwiki>Mindrones botによる版 (Bot: Fixing redirects; cosmetic changes)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

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