Dev:2.4/Source/Extensions/BLU/Documentation/Camera
< Dev:2.4 | Source | Extensions | BLU | Documentation
2011年6月20日 (月) 02:14時点におけるwiki>Mindrones botによる版 (Bot: Fixing redirects)
Module
Camera gives the scripter access to Blender camera data. The Camera module itself has only two methods new() and get(). Both return a camera which can be further manipulated by either using methods of the camera or by directly using member variables.
-- Create a new camera datum of type Persp
camdat = Camera.new(Camera.Persp)
-- Create a new camera datum of type Ortho with name LuaCamDat
camdat2 = Camera.new(Camera.Ortho, "LuaCamDat")
-- Get an existing Blender camera datum with name "LuaCamDat"
camdat3 = Camera.get("LuaCamDat")