Camera

class dazpy.DazCamera(client, identifier)[source]

Bases: DazNode

Proxy for a DzCamera node.

Extends DazNode with optical and image-sensor properties.

property focal_length: float | None

Focal length in millimetres (read/write).

property fov: float | None

Field of view in degrees (read-only; derived from focal length).

property depth_of_field: bool | None

Whether depth-of-field simulation is enabled (read/write).

property frame_width: float | None

Sensor / film-gate width in millimetres (read-only).

property focal_distance: float | None

Distance to the focus plane (read/write).

property aspect_width: float | None

Render aspect ratio width component (read/write).

property aspect_height: float | None

Render aspect ratio height component (read/write).

property pixels_width: int | None

Render image width in pixels (read/write).

property pixels_height: int | None

Render image height in pixels (read/write).

property near_clipping_plane: float | None

Near clipping plane distance (read-only).

property far_clipping_plane: float | None

Far clipping plane distance (read-only).

aim_at(x, y, z)[source]

Point the camera at a world-space coordinate.

Parameters:
  • x (float) – Target X coordinate.

  • y (float) – Target Y coordinate.

  • z (float) – Target Z coordinate.

focal_point()[source]

Return the world-space focal point as {"x", "y", "z"}.

is_view_camera()[source]

Return True if this is the active viewport camera.