VRayOSLOutputSelector

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.

UI Path: ||Material Editor|| > Material/Map Browser > Maps > V-Ray > VRayOSLOutputSelectorTex

images/download/attachments/60098332/Max2023_VRay6_Textures.png


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.

images/download/attachments/60098332/Max2020_VRay5_VRayOSLOutputSelector_parameters.png

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.*/ }

images/download/attachments/60098332/OSLTextures_linked.png

images/download/attachments/60098332/OSLTextures_parameters.png