unreal.PSDFileLayer

class unreal.PSDFileLayer(parent_id: type = (), id: PSDFileLayerId = Ellipsis, type: PSDFileLayerType = Ellipsis, bounds: IntRect = Ellipsis, is_visible: bool = False, blend_mode: PSDBlendMode = Ellipsis, opacity: float = 0.0, is_supported_layer_type: bool = False, import_operation: PSDFileLayerImportOperation = Ellipsis, mask_bounds: IntRect = Ellipsis, mask_default_value: float = 0.0, clipping: int = 0)

Bases: StructBase

PSDFile Layer

C++ Source:

  • Plugin: PSDImporter

  • Module: PSDImporter

  • File: PSDFile.h

Editor Properties: (see get_editor_property/set_editor_property)

  • blend_mode (PSDBlendMode): [Read-Only] The blending mode applied to the layer.

  • bounds (IntRect): [Read-Only] Bounds of the layer.

  • clipping (uint8): [Read-Only] Whether this is a clipping layer.

  • id (PSDFileLayerId): [Read-Only] Index, Name tuple.

  • import_operation (PSDFileLayerImportOperation): [Read-Write] User specified import operation/option.

  • is_supported_layer_type (bool): [Read-Only] A flag indicating whether the layer’s type is supported.

  • is_visible (bool): [Read-Only] Visibility state of the layer.

  • mask (Texture2D): [Read-Only] Imported mask.

  • mask_bounds (IntRect): [Read-Only] Bounds of the mask.

  • mask_default_value (float): [Read-Only] Value of the mask outside the bounds.

  • opacity (double): [Read-Only] Opacity level of the layer, value ranging from 0.0 (fully transparent) to 1.0 (fully opaque).

  • parent_id (‘undefined’): [Read-Write]

  • texture (Texture2D): [Read-Only] Imported texture.

  • thumbnail_texture (Texture2D): [Read-Only] Optional thumbnail preview of the layer’s contents.

  • type (PSDFileLayerType): [Read-Write]

property blend_mode: PSDBlendMode

[Read-Only] The blending mode applied to the layer.

Type:

(PSDBlendMode)

property bounds: IntRect

[Read-Only] Bounds of the layer.

Type:

(IntRect)

property clipping: int

[Read-Only] Whether this is a clipping layer.

Type:

(uint8)

property id: PSDFileLayerId

[Read-Only] Index, Name tuple.

Type:

(PSDFileLayerId)

property import_operation: PSDFileLayerImportOperation

[Read-Only] User specified import operation/option.

Type:

(PSDFileLayerImportOperation)

property is_supported_layer_type: bool

[Read-Only] A flag indicating whether the layer’s type is supported.

Type:

(bool)

property is_visible: bool

[Read-Only] Visibility state of the layer.

Type:

(bool)

property mask_bounds: IntRect

[Read-Only] Bounds of the mask.

Type:

(IntRect)

property mask_default_value: float

[Read-Only] Value of the mask outside the bounds.

Type:

(float)

property opacity: float

[Read-Only] Opacity level of the layer, value ranging from 0.0 (fully transparent) to 1.0 (fully opaque).

Type:

(double)

property parent_id: type

[Read-Only]

Type:

(‘undefined’)

property type: PSDFileLayerType

[Read-Only]

Type:

(PSDFileLayerType)