VRayUserScalar

This page provides information on the User-Defined Scalar Map.

Overview

The VRayUserScalar texture allows the user to read and return a single number value from the User-Defined properties of the currently shaded object as a result. This can be useful if the same material or texture is applied to several objects in the scene, but we want to control some of its aspects (i.e. material glossiness, or a blend between two other textures inside a Mix texture etc.) with User-Defined properties.

UI Path: ||Material Editor window|| > Material/Map Browser...||Material Editor window|| > Material/Map Browser > Maps > V-Ray > VRayUserScalar

images/download/attachments/60098151/Max2020_VRay5_Textures_UIpath.gif

images/download/attachments/60098151/VRayUserScalar.png

VRayUserScalar

Default value – The value of the texture if the user property is not found on the currently shaded object.

Default texmap – A default texture map to use if the user property is not found on the currently shaded object.

Attribute name – A string that defines the name of the user property.

images/download/attachments/60098151/Max2020_VRay5_VRayUserScalar_parameters.png

Format for the Values of User Properties

The text box below the parameters lists possible formats for the value of the user property and how they are interpreted. For example, if we want to use the value of a user property named mtl_glossiness, this can be specified as mtl_glossiness=0.7 on one object and as mtl_glossiness=0.9 on another.

images/download/attachments/60098151/Max2020_VRay5_VRayUserColor_Material_Editor.png

The same material is applied to the two objects with a VRayUserScalar texture controlling the reflection glossiness.

images/download/attachments/60098151/Max2020_VRay5_VRayUserScalar_teapot.png

Object properties for the first object

images/download/attachments/60098151/Max2020_VRay5_VRayUserScalar_sphere.png

Object properties for the second object.

images/download/attachments/60098151/image2014-1-29_4_48_8.png

Although the two objects have the same material, the glossiness is determined by the user property.

Notes