---
title: "VRayOSLOutputSelector"
canonical: "https://documentation.chaos.com/space/VMAX/113575405/VRayOSLOutputSelector"
format: markdown
---
This page provides information on the OSL Output Selector Map.

 

## **Overview**

---

The VRayOSLOutputSelectorTex serves as a tool to select an output of a given VRayOSLTex. That way one VRayOSLTex can be used to supply multiple outputs at the same time.

 

<details>
<summary>UI Path</summary>

||Material Editor|| > **Material** > **Map Browser** > **Maps** > **V-Ray** > **VRayOSLOutputSelectorTex**


![image](media://803ba6ba-a161-4fd9-973a-ea43f64f1c7f)
</details>


## **Parameters**

---

**Input Texmap –** The VRayOSLTex input texmap. (Only VRayOSLTex should be used as an input.)

**Output Index **– The index of the output that is selected(zero based). This parameter is linked to the **Output Name** parameter.

**Output Name **– The name of the output that is selected. Change the output by choosing a different one from the drop-down list. This parameter is linked to the **Output Index** parameter.

![image](media://3971cd7e-fd8e-4fcd-bf00-c314c67113a8)

**                                          **

## **Example**

---

 

##### **Multiple Outputs Example**

```
shader
MultipleOutputsExample
(
    output color Red = color (1.0, 0.0, 0.0),
    output color Green = color (0.0, 1.0, 0.0),
    output color Blue = color (0.0, 0.0, 1.0),
    output color White = color (1.0, 1.0, 1.0),
    output color Black = color (0.0, 0.0, 0.0)
)
{ /*Empty. Does nothing.*/ }
```

![image](media://62258cb2-7990-4a91-8f19-ad1e2c527ed6)

![image](media://f64baf04-427f-4f97-9ff3-b9fff2e54981)