Light

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

Bases: DazNode

Proxy for a DzLight node.

Extends DazNode with light-specific properties.

property intensity: float | None

Light intensity / brightness (read/write).

property color: dict | None

Diffuse colour as {"r", "g", "b"} (0–255 range, read-only).

Use set_color() to change.

set_color(r, g, b)[source]

Set the diffuse colour.

Parameters:
  • r (float) – Red component (0–255).

  • g (float) – Green component (0–255).

  • b (float) – Blue component (0–255).

property shadow_type: str | None

Shadow rendering mode string (read-only).

property illumination: str | None

Illumination type string (read-only).

is_on()[source]

Return True if this light is currently active.

is_directional()[source]

Return True if this is a directional (infinite) light.

is_area_light()[source]

Return True if this is an area (surface) light.

direction()[source]

Return the world-space direction vector {"x", "y", "z"}.

Returns None when the light is not directional.