Camera
Overview
Camera is a class in Aspose.3D FOSS for Python.
Inherits from: Entity.
Camera.move_forward moves the camera forward by the specified distance.
This class provides 8 methods for working with Camera objects in Python programs.
Available methods include: __init__, find_property, get_bounding_box, get_entity_renderer_key, get_property, move_forward, remove_property, set_property.
All exported members are accessible to any Python application after installing the Aspose.3D FOSS for Python package.
Properties: aperture_mode, aspect, aspect_ratio, direction, excluded, far_plane, and 16 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read | Gets the name. |
parent_nodes | `` | Read | Gets the parent nodes. |
excluded | bool | Read | Gets the excluded. |
parent_node | `` | Read | Gets the parent node. |
rotation_mode | `` | Read | Gets the rotation mode. |
near_plane | float | Read | Gets the near plane. |
far_plane | float | Read | Gets the far plane. |
aspect | float | Read | Gets the aspect. |
ortho_height | float | Read | Gets the ortho height. |
up | `` | Read | Gets the up. |
look_at | `` | Read | Gets the look at. |
direction | `` | Read | Gets the direction. |
target | `` | Read | Gets the target. |
aperture_mode | `` | Read | Gets the aperture mode. |
field_of_view | float | Read | Gets the field of view. |
field_of_view_x | float | Read | Gets the field of view x. |
field_of_view_y | float | Read | Gets the field of view y. |
width | float | Read | Gets the width. |
height | float | Read | Gets the height. |
aspect_ratio | float | Read | Gets the aspect ratio. |
magnification | `` | Read | Gets the magnification. |
projection_type | str | Read | Gets the projection type. |
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 bounding box. |
get_entity_renderer_key() | Not implemented in the FOSS edition — throws at runtime. Returns the entity renderer key. |
remove_property(property) | Removes a custom property identified by the given property object |
remove_property(property_name: str) | |
get_property(property: str) | Retrieves the value of a custom property by its identifier |
set_property(property: str, value) | Sets the property value. |
find_property(property: str) | Searches for a custom property and returns it if found |