Module Camera
The Blender.Camera submodule.
New: Camera.clearScriptLinks
accepts a parameter
now.
Camera Data
This module provides access to Camera Data objects in
Blender.
Example:
from Blender import Camera, Object, Scene
cam = Camera.New('ortho') # create new ortho camera data
cam.scale = 6.0 # set scale value for ortho view
scn = Scene.GetCurrent() # get current scene
ob = scn.objects.new(cam) # add a new camera object from the data
scn.setCurrentCamera(ob) # make this camera the active
Classes |
Camera |
This object gives access to Camera-specific data in Blender. |
Function Summary |
Blender Camera or a list of Blender Cameras
|
Get (name)
Get the Camera Data object(s) from Blender. |
Blender Camera
|
New (type,
name)
Create a new Camera Data object. |
Get(name=None)
Get the Camera Data object(s) from Blender.
-
- Parameters:
name -
The name of the Camera Data.
(type=string)
- Returns:
-
It depends on the name parameter:
-
(name): The Camera Data object with the given
name;
-
(): A list with all Camera Data objects in the current
scene.
(type=Blender Camera or a list of Blender Cameras)
|
New(type='persp',
name='CamData')
Create a new Camera Data object.
-
- Parameters:
type -
The Camera type: 'persp' or 'ortho'.
(type=string)
name -
The Camera Data name.
(type=string)
- Returns:
-
The created Camera Data object.
(type=Blender Camera)
|