Camera
Overview
Camera is a class in Aspose.3d for Python.
Inherits from: Entity.
Camera objects expose full perspective and orthographic configuration, including near/far planes, aspect ratio, orthographic height, and up/look‑at vectors.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read | Stores the identifier name of the camera |
parent_nodes | `` | Read | Provides the collection of nodes that are ancestors of the camera |
excluded | bool | Read | Indicates whether the camera is excluded from rendering |
parent_node | `` | Read | References the immediate parent node of the camera |
rotation_mode | `` | Read | Defines how the camera rotation is interpreted |
near_plane | float | Read | Specifies the distance to the near clipping plane |
far_plane | float | Read | Specifies the distance to the far clipping plane |
aspect | float | Read | Defines the aspect ratio of the camera view |
ortho_height | float | Read | Sets the height of the orthographic view volume |
up | `` | Read | Represents the up direction vector of the camera |
look_at | `` | Read | Defines the point in space the camera is looking at |
direction | `` | Read | Indicates the forward direction vector of the camera |
target | `` | Read | Specifies the target point the camera aims at |
aperture_mode | `` | Read | Determines the camera’s aperture behavior |
field_of_view | float | Read | Defines the vertical field of view angle in degrees |
field_of_view_x | float | Read | Defines the horizontal field of view angle in degrees |
field_of_view_y | float | Read | |
width | float | Read | Specifies the width of the camera’s view frustum |
height | float | Read | |
aspect_ratio | float | Read | Provides the ratio of width to height of the view |
magnification | `` | Read | Indicates the zoom magnification factor of the camera |
projection_type | str | Read | Specifies the projection mode, e.g., perspective or orthographic |
Methods
| Signature | Description |
|---|---|
__init__(name: str, projection_type) | |
move_forward(distance: float) | Moves the camera forward by the specified distance |
get_bounding_box() | Returns the camera’s bounding box |
get_entity_renderer_key() | Returns a key used for rendering the camera entity |
remove_property(property) | Removes a custom property from the camera by object or name |
remove_property(property_name: str) | |
get_property(property: str) | Returns the value of the specified custom property |
set_property(property: str, value) | Assigns the given value to the specified custom property |
find_property(property: str) | Searches for a custom property and returns it if found |