unreal.DMMaterialProperty¶
- class unreal.DMMaterialProperty(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
DMMaterialComponentBase Color, Specular, Opacity, etc
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterialEditor
File: DMMaterialProperty.h
Editor Properties: (see get_editor_property/set_editor_property)
component_dirty(bool): [Read-Only]component_state(DMComponentLifetimeState): [Read-Only]components(Map[Name, DMMaterialComponent]): [Read-Only] Components of this property. Not necessarily owned or controlled by this property.editable_properties(Array[Name]): [Read-Only]enabled(bool): [Read-Only] Whether this property is enabled. If it is not enabled, it will generate no expressions.input_connection_map(DMMaterialStageConnection): [Read-Only] The map of expressions connected to this property’s input node.input_connector_type(DMValueType): [Read-Only] The value type used to connect to this property. Will be either VT_Float1, VT_Float3_RGB or VT_Float3_XYZ.material_property(DMMaterialPropertyType): [Read-Only] The property type of this property.output_processor(MaterialFunctionInterface): [Read-Only] An optional material function which is applied in between the property and its inputs.
- property components: None¶
[Read-Only] Components of this property. Not necessarily owned or controlled by this property.
- Type:
- property enabled: bool¶
[Read-Only] Whether this property is enabled. If it is not enabled, it will generate no expressions.
- Type:
(bool)
- get_description() Text¶
The description of this property based on the EDMMaterialPropertyType enum.
- Return type:
- get_input_connection_map() DMMaterialStageConnection¶
- Returns:
Get the expressions which connect to this property, mapped per channel.
- Return type:
- get_input_connector_type() DMValueType¶
- Returns:
The value type of this property. Will be either VT_Float1, VT_Float3_RGB or VT_Float3_XYZ.
- Return type:
- get_material_model_editor_only_data() DynamicMaterialModelEditorOnlyData¶
Get Material Model Editor Only Data
- Return type:
- get_material_property() DMMaterialPropertyType¶
Get Material Property
- Return type:
- get_output_processor() MaterialFunctionInterface¶
The output process is an optional material function which is applied in between the property and its inputs.
- Returns:
The current output processor.
- Return type:
- property input_connection_map: DMMaterialStageConnection¶
[Read-Only] The map of expressions connected to this property’s input node.
- Type:
- property input_connector_type: DMValueType¶
[Read-Only] The value type used to connect to this property. Will be either VT_Float1, VT_Float3_RGB or VT_Float3_XYZ.
- Type:
- is_material_pin() bool¶
Whether this property represents a material pin. Only materials properties with a pin will be generated by default.
- Return type:
- property material_property: DMMaterialPropertyType¶
[Read-Only] The property type of this property.
- Type:
- property output_processor: MaterialFunctionInterface¶
[Read-Only] An optional material function which is applied in between the property and its inputs.
- Type:
- set_output_processor(function) None¶
The output process is an optional material function which is applied in between the property and its inputs.
- Parameters:
function (MaterialFunctionInterface) – The new output processor.