class documentation

Represents the configuration of a 3D perspective camera.

Parameters
positionthe position of the camera. If None, the camera position is calculated based on the bounding box of the scene
look_atthe point the camera is looking at. If None, the camera looks at the center of the scene
upthe orthonormal axis that is considered up. Must be one of "X", "Y", or "Z". If None, it will fallback to the global up as defined in 3D plugin settings. If that too is not defined, it will fallback to "Y"
aspectthe aspect ratio of the camera. If None, the aspect ratio is calculated based on the width and height of the canvas
fovcamera frustum vertical field of view in degrees. If None, the field of view is 50 degrees
nearthe near clipping plane of the camera
farthe far clipping plane of the camera
Method __init__ Undocumented
Method as_dict Undocumented
Method aspect.setter Undocumented
Method far.setter Undocumented
Method fov.setter Undocumented
Method look_at.setter Undocumented
Method near.setter Undocumented
Method position.setter Undocumented
Method up.setter Undocumented
Property aspect Undocumented
Property far Undocumented
Property fov Undocumented
Property look_at Undocumented
Property near Undocumented
Property position Undocumented
Property up Undocumented
Static Method _from_dict Undocumented
Instance Variable _aspect Undocumented
Instance Variable _far Undocumented
Instance Variable _fov Undocumented
Instance Variable _look_at Undocumented
Instance Variable _near Undocumented
Instance Variable _position Undocumented
Instance Variable _up Undocumented

Inherited from BaseValidatedDataClass:

Method __eq__ Undocumented
Method __repr__ Undocumented
Method __setattr__ Undocumented
def __init__(self, position: Vector3 | None = None, look_at: Vector3 | None = None, up: UpDirection | None = None, aspect: float | None = None, fov: float = 50.0, near: float = 0.1, far: float = 2000.0): (source)

Undocumented

def as_dict(self) -> dict: (source)

Undocumented

@aspect.setter
def aspect(self, value: float | None): (source)

Undocumented

@far.setter
def far(self, value: float): (source)

Undocumented

@fov.setter
def fov(self, value: float): (source)

Undocumented

@look_at.setter
def look_at(self, value: Vec3UnionType): (source)

Undocumented

@near.setter
def near(self, value: float): (source)

Undocumented

@position.setter
def position(self, value: Vec3UnionType): (source)

Undocumented

@up.setter
def up(self, value): (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

@staticmethod
def _from_dict(d: dict): (source)

Undocumented

Undocumented

Undocumented

Undocumented

_look_at = (source)

Undocumented

Undocumented

_position = (source)

Undocumented

Undocumented