unreal.DynamicMaterialModelDynamic¶
- class unreal.DynamicMaterialModelDynamic(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
DynamicMaterialModelBaseRepresents a MID-like version of a Material Designer Model. Uses dynamic values/texture uvs to link to the original model.
C++ Source:
Plugin: DynamicMaterial
Module: DynamicMaterial
File: DynamicMaterialModelDynamic.h
Editor Properties: (see get_editor_property/set_editor_property)
dynamic_components(Map[Name, DMMaterialComponentDynamic]): [Read-Only] Map of the dynamic components that reference the parent model.dynamic_material_instance(DynamicMaterialInstance): [Read-Only] Hard reference to the instance, if it exists.parent_model_soft(DynamicMaterialModel): [Read-Only] Soft reference to the parent model.
- classmethod create(outer, parent_model) DynamicMaterialModelDynamic¶
Create a new Material Designer Model Instance based on a parent Model.
- Parameters:
outer (Object) – Could be the transient package, an asset package or a Material Designer Material.
parent_model (DynamicMaterialModel)
- Returns:
A new Material Designer Model Instance with its components already initialized.
- Return type:
- property dynamic_components: None¶
[Read-Only] Map of the dynamic components that reference the parent model.
- Type:
- property dynamic_material_instance: DynamicMaterialInstance¶
[Read-Only] Hard reference to the instance, if it exists.
- Type:
- get_component_by_path(path) DMMaterialComponent¶
Finds the component with the given path.
- Parameters:
path (str)
- Return type:
- get_component_dynamic(name) DMMaterialComponentDynamic¶
Returns the component with the given name or nullptr.
- Parameters:
name (Name)
- Return type:
- get_parent_model() DynamicMaterialModel¶
Resolves and returns the parent model from ParentModelSoft, saving it in the transient ParentModel.
- Return type:
- property parent_model_soft: DynamicMaterialModel¶
[Read-Only] Soft reference to the parent model.
- Type: