# Set Material

## Overview

![The Set Material Node.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-4b6e5ea3249ad82571fd243b3d731318b6b6f4f2%2Fsetmaterialupdatedimage.png?alt=media)

**Set Material** assigns a **Material** to a [**Mesh** **Object**](https://docs.incari.com/incari-studio/2022.1/objects-and-types/scene-objects/mesh).

[**Scope**](https://docs.incari.com/incari-studio/2022.1/overview#scopes): **Scene**, **Function**, **Prefab**.

## Attributes

![The Set Material Node Attributes.](https://926825830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKQhJdUBr7YQzfIwmpAZ9%2Fuploads%2Fgit-blob-cfcdc8431dbc568a1a8e65bcbeac7034000abe1e%2Fnode-set-material-attr.png?alt=media)

| Attribute          | Type           | Description                                                                                                               |
| ------------------ | -------------- | ------------------------------------------------------------------------------------------------------------------------- |
| `Object`           | **ObjectID**   | The **Mesh Object**, to which the **Material** is to be applied to, if one is not provided in the `Object ID` **Socket**. |
| `Default Material` | **MaterialID** | The default value of the `Material ID` **Socket**, if no value is provided.                                               |

## Inputs

| Input             | Type         | Description                                                                 |
| ----------------- | ------------ | --------------------------------------------------------------------------- |
| *Pulse Input* (►) | **Pulse**    | A standard **Input Pulse**, to trigger the execution of the **Node**.       |
| `Object ID`       | **ObjectID** | The ID of the **Mesh Object** you would like to assign the **Material** to. |
| `Material ID`     | **CustomID** | The **Material** to be applied to the **Mesh** **Object**.                  |

## Outputs

| Output             | Type      | Description                                                                                                                            |
| ------------------ | --------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| *Pulse Output* (►) | **Pulse** | A standard **Output Pulse**, to move onto the next **Node** along the **Logic Branch**, once this **Node** has finished its execution. |

## See Also

* [**Get Material**](https://docs.incari.com/incari-studio/2022.1/toolbox/incari/object/get-material)
* [**Mesh**](https://docs.incari.com/incari-studio/2022.1/objects-and-types/scene-objects/mesh)
