Properties

class dazpy.DazProperty(client, owner_locator, property_label)[source]

Bases: DazElement

Proxy for a DzProperty on any DzElement.

Provides typed read/write access to a single named property, including keyframe support for animated properties.

Parameters:
  • client (DazClient) – The DazClient for remote calls.

  • owner_locator (str) – JavaScript expression that evaluates to the owning DzElement.

  • property_label (str) – The getLabel() string of the property.

property value: object

Current property value (read/write).

property label: str | None

The display label of this property (read-only).

property min: float | None

Minimum allowed value (read-only; None if not applicable).

property max: float | None

Maximum allowed value (read-only; None if not applicable).

set_key(time, value)[source]

Set a keyframe for this property.

Parameters:
  • time (float) – The keyframe time in DAZ ticks.

  • value (object) – The property value at that keyframe.

property is_animated: bool | None

True if this property has keyframe animation data (read-only).