unreal.DMXPixelMappingLayoutScript

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

Bases: Object

Allows scripting of Pixel Mapping Component Layouts. Override the Layout function to implement a layout.

C++ Source:

  • Plugin: DMXPixelMapping

  • Module: DMXPixelMappingRuntime

  • File: DMXPixelMappingLayoutScript.h

Editor Properties: (see get_editor_property/set_editor_property)

  • num_tokens (int32): [Read-Write] The number of tokens in the Layout.

  • parent_component_position (Vector2D): [Read-Write] The position of the parent component where the components that are being layouted reside in.

  • parent_component_size (Vector2D): [Read-Write] The size of the parent component where the components that are being layouted reside in.

  • texture_size (Vector2D): [Read-Write] The size of the texture in the Pixel Mapping asset.

layout(tokens) Array[DMXPixelMappingLayoutToken]

Lays out children of the selection according to OutTokens. Tokens that are not returned remain unchanged. Called when the script is loaded (unless set otherwise in editor) and when Properties were changed.

Parameters:

tokens (Array[DMXPixelMappingLayoutToken]) – The child components of the current selection, as layout tokens.

Returns:

out_tokens (Array[DMXPixelMappingLayoutToken]): The layoyut of a component.

Return type:

Array[DMXPixelMappingLayoutToken]

property num_tokens: int

[Read-Only] The number of tokens in the Layout.

Type:

(int32)

property parent_component_position: Vector2D

[Read-Only] The position of the parent component where the components that are being layouted reside in.

Type:

(Vector2D)

property parent_component_size: Vector2D

[Read-Only] The size of the parent component where the components that are being layouted reside in.

Type:

(Vector2D)

property texture_size: Vector2D

[Read-Only] The size of the texture in the Pixel Mapping asset.

Type:

(Vector2D)