# Set Material

Sets the material associated with a document object

{% tabs %}
{% tab title="Preview" %}
![](https://2066716321-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNf3CHUr2WVj5oGeU3ro9%2Fuploads%2FQJU454lQr5oXxPU7hRji%2FSet%20Material.png?alt=media\&token=d5ba7167-f244-43a7-bed0-3e5ae2622004)
{% endtab %}

{% tab title="Location" %}
**Name** | Set Material

**Nickname** | Set Material

**Tab** | TTToolbox

**Panel** | Document

**Division** | 3
{% endtab %}

{% tab title="Inputs" %}
**\*A** | **Attributes** (*Generic*) | An optional attribute object to update. If empty a new attribute object will be created.

**D** | **Diffuse Color** (*Colour*) | The base color

**R** | **Roughness** (*Number*) | Roughness of the surface from 0.0 mirror to 1.0 diffuse

**M** | **Metalness** (*Number*) | Metalness of the surface from 0.0 stone to 1.0 metal

**O** | **Opacity** (*Number*) | The opacity of the surface from 0.0 transparent to 1.0 opaque

**E** | **Emissive Color** (*Colour*) | The fill color
{% endtab %}

{% tab title="Ouputs" %}
**A** | **Attribute** (*Attribute*) | A CORE Attribute object

M | Material (Shader) | A Rhino PBR Shader Material
{% endtab %}
{% endtabs %}

## Usage
