Materials & Modifiers

DazMaterial

class dazpy.DazMaterial(client, locator)[source]

Bases: DazElement

Proxy for a DzMaterial surface on a DAZ Studio node.

Instances are obtained via DazNode.materials() or DazNode.find_material().

property material_name: str | None

Internal material name (read-only).

property diffuse_color: dict | None

Diffuse colour as {"r", "g", "b"} (0–255, read/write).

Can be set with a dict or a 3-tuple (r, g, b).

property opacity: float | None

Base opacity / transparency value (0.0 transparent – 1.0 opaque, read/write).

color_map()[source]

Return the file path of the diffuse colour texture, or None.

is_smoothing_on()[source]

Return True if normal smoothing is enabled for this material.

property smoothing_angle: float | None

Normal smoothing angle in degrees (read/write).

is_opaque()[source]

Return True if the material is fully opaque (opacity == 1.0).

DazMorph

class dazpy.DazMorph(client, locator)[source]

Bases: DazModifier

Proxy for a DzMorph blendshape slider on a node.

Returned by DazNode.morphs() and DazNode.find_modifier() when the underlying DAZ modifier is a DzMorph.

property value: float | None

Current morph strength (typically 0.0–1.0, read/write).

property min: float | None

Minimum allowed value for this morph channel (read-only).

property max: float | None

Maximum allowed value for this morph channel (read-only).

DazModifier

class dazpy.DazModifier(client, locator)[source]

Bases: DazElement

Proxy for a DzModifier (constraint, formula, etc.) on a node.

Instances are obtained via DazNode.modifiers() or DazNode.find_modifier(). For morph/blendshape modifiers, the more specific DazMorph subclass is returned automatically.

property modifier_label: str | None

User-visible display label of this modifier (read-only).

property enabled: bool | None

Whether this modifier is currently active (read/write).