unreal.TexturePatchWeightEntry

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

Bases: TexturePatchEntry

Texture Patch Weight Entry

C++ Source:

  • Plugin: MeshPartition

  • Module: MeshPartitionEditor

  • File: MeshPartitionTexturePatchModifier.h

Editor Properties: (see get_editor_property/set_editor_property)

  • alpha_channel_index (int32): [Read-Write]

  • alpha_mode (TexturePatchAlphaMode): [Read-Write]

  • alpha_texture_asset (Texture2D): [Read-Write]

  • apply_height_min_max_blend (bool): [Read-Write] Only relevant when Min or Max blend mode is used for height. When true, the weights are not applied in

    areas where the height data was ignored due to above/below the current values in min/max blend mode.

  • blend_mode (TexturePatchBlendMode): [Read-Write] How the values from the texture affect the intensity.

  • corner_radius (float): [Read-Write] When not 0, the corners are rounded with the given radius (clamped to half of the smallest dimension).

    A square patch with maximal corner radius becomes a circle.

  • encoding_scale (double): [Read-Write] How to scale values obtained from the texture. Note: this is applied after the value curve, if that is used.

  • falloff_curve (CurveFloat): [Read-Write]

  • falloff_distance (float): [Read-Write] Distance (in local space) across which to fall off the patch effects from the edge.

  • falloff_mode (TexturePatchFalloffMode): [Read-Write] How effects of the patch are decreased along the edges of the modifier. The effect will take place across Falloff Distance from

    the modifier edges.

  • height_min_max_blend_distance (double): [Read-Write] When using “Apply Height Min Max Blend,” this parameter sets the range of heights across which the weights will blend. If this parameter is equal to Softness Parameter, then heights blended by the Softness Parameter will also have their weights linearly blended.

  • self_mask_tolerance (double): [Read-Write] When using “Self Mask” alpha mode, the alpha will be set to 0 if absolute value of the texture sampled values is this or lower.

  • softness_parameter (double): [Read-Write] When using Min or Max BlendMode, allows for the transition between current values and new values to be smoothed out, to prevent

    sharp edges when intersecting existing geometry in the center of the modifier (where the falloff does not reach). The parameter corresponds to distance between the desired and current heights across which the min/max is blended.

  • texture_asset (Texture2D): [Read-Write] Texture that the patch samples. Note that currently the patch will not know to trigger a reapplication if the

    data inside the asset changes somehow.

  • texture_channel_index (int32): [Read-Write] Channel index to sample in the texture asset. R: 0, G: 1, B:2, A:3

  • use_value_curve (bool): [Read-Write] When true, allows a custom curve to remap values from the texture, before Scale and Zero Value are applied.

  • value_curve (CurveFloat): [Read-Write] Optional adjustment curve that can be applied to texture values (similar to a contrast adjustment).

  • value_curve_offset (double): [Read-Write] If the texture values are not in the range [0,1], gives a way to remap to a [0,1] range for using the adjustment curve.

    The input to the curve will be transformed via (Input - ValueCurveOffset) / ValueCurveScale, and the output will be transformed back via Output * AjustmentCurveScale + AjustmentCurveOffset.

  • value_curve_scale (double): [Read-Write] If the texture values are not in the range [0,1], gives a way to remap to a [0,1] range for using the adjustment curve.

    The input to the curve will be transformed via (Input - ValueCurveOffset) / ValueCurveScale, and the output will be transformed back via Output * AdjustmentCurveScale + AdjustmentCurveOffset.

  • weight_channel_name (ChannelName): [Read-Write]

  • zero_in_encoding (double): [Read-Write] What value is considered 0 in the texture. For instance you may choose to change the zero to 0.5, so that

    values of 0 become -0.5 when applied.

    Note: this is applied after the value curve, if that is used.

copy_falloff_settings() None

Copy all falloff settings from the displacement channel to all weight channels.