unreal.DMMaterialStageThroughputLayerBlend

class unreal.DMMaterialStageThroughputLayerBlend(outer: Object | None = None, name: Name | str = 'None')

Bases: DMMaterialStageThroughput

Used as the source for mask stages.

C++ Source:

  • Plugin: DynamicMaterial

  • Module: DynamicMaterialEditor

  • File: DMMaterialStageThroughputLayerBlend.h

Editor Properties: (see get_editor_property/set_editor_property)

  • allow_nested_inputs (bool): [Read-Only]

  • component_dirty (bool): [Read-Only]

  • component_state (DMComponentLifetimeState): [Read-Only]

  • editable_properties (Array[Name]): [Read-Only]

  • input_connectors (Array[DMMaterialStageConnector]): [Read-Only]

  • input_required (bool): [Read-Only]

  • is_alpha_only_blend (bool): [Read-Write]

  • mask_channel_override (AvaColorChannel): [Read-Write] Changes the output channel of the mask input.

  • name (Text): [Read-Only]

  • output_connectors (Array[DMMaterialStageConnector]): [Read-Only]

  • premultiply_alpha (bool): [Read-Write] Additionally multiplies the output of the RGB Stage by the output from this Stage.

classmethod create_stage(layer=None) DMMaterialStage

Create Stage

Parameters:

layer (DMMaterialLayerObject)

Return type:

DMMaterialStage

get_input_mask() DMMaterialStageInput

Returns the input connected to the Mask input.

Return type:

DMMaterialStageInput

get_mask_channel_override() AvaColorChannel

Filters the output of the mask input node with the given channel.

Return type:

AvaColorChannel

property is_alpha_only_blend: bool

[Read-Only]

Type:

(bool)

property mask_channel_override: AvaColorChannel

[Read-Only] Changes the output channel of the mask input.

Type:

(AvaColorChannel)

property premultiply_alpha: bool

[Read-Only] Additionally multiplies the output of the RGB Stage by the output from this Stage.

Type:

(bool)

set_mask_channel_override(mask_channel) None

Filters the output of the mask input node with the given channel.

Parameters:

mask_channel (AvaColorChannel)

set_premultiply_alpha(value) None

When true, the base stage’s output will be multiplied by this stage (darkening it where it is translucent).

Parameters:

value (bool)

use_premultiply_alpha() bool

When true, the base stage’s output will be multiplied by this stage (darkening it where it is translucent).

Return type:

bool