unreal.DMTextureSet

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

Bases: Object

DMTexture Set

C++ Source:

  • Plugin: DynamicMaterial

  • Module: DynamicMaterialTextureSet

  • File: DMTextureSet.h

Editor Properties: (see get_editor_property/set_editor_property)

  • textures (Map[DMTextureSetMaterialProperty, DMMaterialTexture]): [Read-Write]

contains_texture(texture) bool

Checks the Texture Map to see if a given Texture exists within it.

Parameters:

texture (Texture) – The Texture to search for.

Returns:

True if the Texture exits in the Texture Map.

Return type:

bool

get_material_texture(material_property) DMMaterialTexture or None

Gets the Material Texture associated with a Material Property. Does not check whether a Texture is assigned to it.

Parameters:

material_property (DMTextureSetMaterialProperty) – The Material Property to check.

Returns:

True if the Material Property exists within the Texture Map.

out_material_texture (DMMaterialTexture): The found Material Texture.

Return type:

DMMaterialTexture or None

has_material_property(material_property) bool

Checks whether a given Material Property exists in the Texture Map. Does not check whether that a Texture is assigned to it.

Parameters:

material_property (DMTextureSetMaterialProperty) – The Material Property to check.

Returns:

True if the property exists in the Texture Map.

Return type:

bool

has_material_texture(material_property) bool

Checks whether a given Material Property has a Texture assigned to it.

Parameters:

material_property (DMTextureSetMaterialProperty) – The Material Property to check.

Returns:

True if the Material Property has an assigned Texture.

Return type:

bool

set_material_texture(material_property, material_texture) None

Sets the Material Texture for a given Material Property. Can be used to unset Textures.

Parameters:
property textures: None

[Read-Write]

Type:

(Map[DMTextureSetMaterialProperty, DMMaterialTexture])