material.TransparentOutline

material.TransparentOutline(
    alpha=0.7,
    outline=True,
    outline_color=(0.0, 0.0, 0.0, 1.0),
    threshold=0.2,
    thickness=0.15,
    *,
    name=None,
)

A partially transparent material with an optional solid outline.

Parameters

Name Type Description Default
alpha float Opacity of the surface; 0 is fully transparent, 1 fully opaque. 0.7
outline bool Whether to render the solid outline around the object. True
outline_color tuple[float, float, float, float] Color of the outline. (0.0, 0.0, 0.0, 1.0)
threshold float Threshold for the edge detection that forms the outline. 0.2
thickness float Thickness of the outline. 0.15
name str Name for the created material datablock. Defaults to "Transparent Outline". None

Attributes

Name Description
material The underlying Blender material datablock.
outline Whether the solid outline is rendered.
tree The nodebpy tree builder for the material’s node tree.