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

NameTypeAccessDescription
namestrReadGets the name.
parent_nodes``ReadGets the parent nodes.
excludedboolReadGets the excluded.
parent_node``ReadGets the parent node.
rotation_mode``ReadGets the rotation mode.
near_planefloatReadGets the near plane.
far_planefloatReadGets the far plane.
aspectfloatReadGets the aspect.
ortho_heightfloatReadGets the ortho height.
up``ReadGets the up.
look_at``ReadGets the look at.
direction``ReadGets the direction.
target``ReadGets the target.
aperture_mode``ReadGets the aperture mode.
field_of_viewfloatReadGets the field of view.
field_of_view_xfloatReadGets the field of view x.
field_of_view_yfloatReadGets the field of view y.
widthfloatReadGets the width.
heightfloatReadGets the height.
aspect_ratiofloatReadGets the aspect ratio.
magnification``ReadGets the magnification.
projection_typestrReadGets the projection type.

Methods

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

See Also