Navigation
BlueprintAPI > BlueprintAPI/GeometryScript > BlueprintAPI/GeometryScript/Materials
Remap the Material IDs of the TargetMesh to a new set of Material IDs based on a 'From'/Current Material List, and a New Material List. For each triangle, the current Material is determined as FromMaterialList[MaterialID], and then the first index of this Material is found in the ToMaterialList, and this index is used as the new MaterialID
If a Material cannot be found in ToMaterialList, a warning will be printed and the MaterialID left unmodified, unless MissingMaterialID is set to a value >= 0, in which case MissingMaterialID will be assigned
Target is Geometry Script Library Mesh Material Functions
Inputs
| Type | Name | Description |
|---|---|---|
| exec | In | |
| object | Target Mesh | |
| object | From Material List | |
| object | To Material List | |
| integer | Missing Material ID |
Outputs
| Type | Name | Description |
|---|---|---|
| exec | Out | |
| object | Target Mesh |