Skip to main content

PrimitiveDisplayProperties

Other

Common display properties for primitive objects. These properties control the appearance of primitives in the 3D view.

Import

import ScriptingApi as api

# Access the class
# PrimitiveDisplayProperties is available via api.PrimitiveDisplayProperties

Properties

color

RGB color values [r, g, b], each in range [0.0, 1.0].

Type: list


opacity

Opacity value in range [0.0, 1.0].

Type: float


wireframe

If true, displays as wireframe; otherwise as solid surface.

Type: bool


resolution

Mesh resolution for rendering the primitive. Higher values yield smoother appearance.

Type: int


See Also