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

NameTypeAccessDescription
namestrReadStores the identifier name of the camera
parent_nodes``ReadProvides the collection of nodes that are ancestors of the camera
excludedboolReadIndicates whether the camera is excluded from rendering
parent_node``ReadReferences the immediate parent node of the camera
rotation_mode``ReadDefines how the camera rotation is interpreted
near_planefloatReadSpecifies the distance to the near clipping plane
far_planefloatReadSpecifies the distance to the far clipping plane
aspectfloatReadDefines the aspect ratio of the camera view
ortho_heightfloatReadSets the height of the orthographic view volume
up``ReadRepresents the up direction vector of the camera
look_at``ReadDefines the point in space the camera is looking at
direction``ReadIndicates the forward direction vector of the camera
target``ReadSpecifies the target point the camera aims at
aperture_mode``ReadDetermines the camera’s aperture behavior
field_of_viewfloatReadDefines the vertical field of view angle in degrees
field_of_view_xfloatReadDefines the horizontal field of view angle in degrees
field_of_view_yfloatRead
widthfloatReadSpecifies the width of the camera’s view frustum
heightfloatRead
aspect_ratiofloatReadProvides the ratio of width to height of the view
magnification``ReadIndicates the zoom magnification factor of the camera
projection_typestrReadSpecifies the projection mode, e.g., perspective or orthographic

Methods

SignatureDescription
__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