alias_api.AlCamera

class alias_api.AlCamera

Bases: AlObject

A base class that encapsulates behavior of perspective and orthographic cameras.

This class used to represent all the functionality of Alias perspective cameras. When the AlWindow class was born and it became possible to get and set the window associated with a camera, it became necessary not only to provide an interface to orthographic cameras as well, but also to separate the differences in functionality into two child classes. The AlCamera class remains as a base class, providing access to the behavior that all cameras share. In places where AlCameras were formerly used, it is possible to easily convert old code simply by substituting AlPerspectiveCamera for AlCamera almost everywhere. (A few other small modifications may be necessary).

Any camera can have image planes attached to it. To create an image plane on a camera, use the addImagePlane command.

If a window is associated with this camera (which will always be the case for orthographic cameras, but not so for perspective cameras) the first_window() function will return it.

copy_wrapper(self: alias_api.AlCamera) alias_api.AlObject

Return an exact duplicate of this AlCamera wrapper.

delete_object(self: alias_api.AlCamera) int

Delete the AlCamera from the Alias Universe and return the status of the performed operation.

property name

Get or set the AlCamera name.

type(self: alias_api.AlCamera) alias_api.AlObjectType

Return the AlCamera type identifier.