scene.camera
scene.camera
Classes
| Name | Description |
|---|---|
| Camera | A class to handle camera settings in Blender. |
Camera
scene.camera.Camera()A class to handle camera settings in Blender.
Attributes
| Name | Description |
|---|---|
| camera | Get Camera object |
| camera_data | Get Camera data |
| clip_end | Get Camera far clipping distance |
| clip_start | Get Camera near clipping distance |
| lens | Get Camera focal length |
| rotation | Get Camera rotation in degrees (XYZ) |
Methods
| Name | Description |
|---|---|
| set_viewpoint | Set viewpoint to a preset or a custom Euler rotation. |
set_viewpoint
scene.camera.Camera.set_viewpoint(viewpoint)Set viewpoint to a preset or a custom Euler rotation.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| viewpoint | Viewpoints | Sequence[float] |
Either a named viewpoint string (e.g. “front”, “top”) or a tuple/list of three Euler angles in radians. | required |