unreal.DMMaterialStageConnectorChannel

class unreal.DMMaterialStageConnectorChannel(source_index: int = 0, material_property: DMMaterialPropertyType = Ellipsis, output_index: int = 0, output_channel: int = 0)

Bases: StructBase

An individual component of a connector (e.g. G from RGB.)

C++ Source:

  • Plugin: DynamicMaterial

  • Module: DynamicMaterial

  • File: DMDefs.h

Editor Properties: (see get_editor_property/set_editor_property)

  • material_property (DMMaterialPropertyType): [Read-Only] When using previous stages, this is the material property the previous stage is using

  • output_channel (int32): [Read-Only] This can be used to break down float2/3/4 into single pieces of data A value of 0 will be the original output. A bitmask (1,2,4,8) will reference (and combine) the specific channels.

  • output_index (int32): [Read-Only] The index of the output connector of the given stage.

  • source_index (int32): [Read-Only] The index of the source of this channel Index 0 is the previous stage, 1+ are the other inputs required by the current stage (e.g. textures, uvs, etc.)

property material_property: DMMaterialPropertyType

[Read-Only] When using previous stages, this is the material property the previous stage is using

Type:

(DMMaterialPropertyType)

property output_channel: int

[Read-Only] This can be used to break down float2/3/4 into single pieces of data A value of 0 will be the original output. A bitmask (1,2,4,8) will reference (and combine) the specific channels.

Type:

(int32)

property output_index: int

[Read-Only] The index of the output connector of the given stage.

Type:

(int32)

property source_index: int

[Read-Only] The index of the source of this channel Index 0 is the previous stage, 1+ are the other inputs required by the current stage (e.g. textures, uvs, etc.)

Type:

(int32)