unreal.DMMaterialSlot
¶
- class unreal.DMMaterialSlot(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
DMMaterialComponent
A list of operations/inputs daisy chained together to produce an output.
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterialEditor
File: DMMaterialSlot.h
Editor Properties: (see get_editor_property/set_editor_property)
base_preview_material
(Material): [Read-Only]component_dirty
(bool): [Read-Only]component_state
(DMComponentLifetimeState): [Read-Only]editable_properties
(Array[Name]): [Read-Only]index
(int32): [Read-Only]is_editing_layers
(bool): [Read-Only]layer_objects
(Array[DMMaterialLayerObject]): [Read-Only]mask_preview_material
(Material): [Read-Only]output_connector_types
(Map[DMMaterialPropertyType, DMMaterialSlotOutputConnectorTypes]): [Read-Only]
- add_layer(material_property, new_base) DMMaterialLayerObject ¶
Add Layer
- Parameters:
material_property (DMMaterialPropertyType) –
new_base (DMMaterialStage) –
- Return type:
- add_layer_with_mask(material_property, new_base, new_mask) DMMaterialLayerObject ¶
Add Layer with Mask
- Parameters:
material_property (DMMaterialPropertyType) –
new_base (DMMaterialStage) –
new_mask (DMMaterialStage) –
- Return type:
- bp_get_layers() Array[DMMaterialLayerObject] ¶
BP Get Layers
- Return type:
- find_layer(base_or_mask) DMMaterialLayerObject ¶
Find Layer
- Parameters:
base_or_mask (DMMaterialStage) –
- Return type:
- get_all_output_connector_types() Set[DMValueType] ¶
Get All Output Connector Types
- Return type:
- get_index() int32 ¶
Get Index
- Return type:
int32
- get_last_layer_for_material_property(material_property) DMMaterialLayerObject ¶
Get Last Layer for Material Property
- Parameters:
material_property (DMMaterialPropertyType) –
- Return type:
- get_layer(layer_index) DMMaterialLayerObject ¶
Get Layer
- Parameters:
layer_index (int32) –
- Return type:
- get_material_model_editor_only_data() DynamicMaterialModelEditorOnlyData ¶
Get Material Model Editor Only Data
- Return type:
- get_output_connector_types_for_material_property(material_property) Array[DMValueType] ¶
Get Output Connector Types for Material Property
- Parameters:
material_property (DMMaterialPropertyType) –
- Return type:
- get_preview_material(layer_stage) Material ¶
Get Preview Material
- Parameters:
layer_stage (DMMaterialLayerStage) –
- Return type:
- k2_get_slots_referenced_by() Array[DMMaterialSlot] ¶
K2 Get Slots Referenced By
- Return type:
- move_layer(layer, new_index) bool ¶
Move Layer
- Parameters:
layer (DMMaterialLayerObject) –
new_index (int32) –
- Return type:
- move_layer_after(layer, after_layer=None) bool ¶
Move Layer After
- Parameters:
layer (DMMaterialLayerObject) –
after_layer (DMMaterialLayerObject) –
- Return type:
- move_layer_before(layer, before_layer=None) bool ¶
Move Layer Before
- Parameters:
layer (DMMaterialLayerObject) –
before_layer (DMMaterialLayerObject) –
- Return type:
- paste_layer(layer) bool ¶
Adds the specified layer to the end of the layer list
- Parameters:
layer (DMMaterialLayerObject) –
- Return type:
- remove_layer(layer) bool ¶
Remove Layer
- Parameters:
layer (DMMaterialLayerObject) –
- Return type:
- set_layer_material_property_and_replace_others(layer, material_property, replace_with_property) bool ¶
Set Layer Material Property and Replace Others
- Parameters:
layer (DMMaterialLayerObject) –
material_property (DMMaterialPropertyType) –
replace_with_property (DMMaterialPropertyType) –
- Return type: