---
title: "Using Custom Attributes to Match Proxy and Material"
canonical: "https://documentation.chaos.com/space/VMAX/113575519/Using%20Custom%20Attributes%20to%20Match%20Proxy%20and%20Material"
format: markdown
---
This tutorial demonstrates the flexibility of VRayProxy and VRaySwitchMtl when working with user defined attributes.


## **Overview**

---

3ds Max User Defined Properties dialog allows adding custom attributes per object. These attributes can have unique values even between instanced geometry. 

In this tutorial we use this feature to link a variety of materials and vrmesh assets to [VRayProxy ](https://docs-chaos.atlassian.net/wiki/spaces/VMAX/pages/113575423)instances.

First, we define the custom object attribute that we use as switch for both material and geometry. Then, we set the switch in a [VRaySwitch ](https://docs-chaos.atlassian.net/wiki/spaces/VMAX/pages/113575824)material to specify the exact sub-material which is used. And finally, we instantiate the VRayProxy objects and set their custom attribute values, effectively specifying the exact vrmesh and material to use.

Want to follow along but don’t have a license?


> Macro (ui-button)





## **Step 1: Set the object property attribute**

---


## **Step 2: VRaySwitchMtl and VRayUserScalar**

---


---



## **Step 3: Using Proxy Instances**

---


---



---



---