The VRayUserColor texture can be used to read User-Defined object properties from the currently shaded node and convert them to a color value. This allows you to use the same shading network on several different objects in the scene, but to control various aspects of the material through User-Defined properties. This texture also has the ability to read mesh color sets, UV sets, and extra channel information from VRayProxy File Formats objects, as well as additional data channels from other plugins like Yeti.
The Example on the right uses a VRayUserColor node to control the diffuse value on a single V-Ray Material. The four different pieces of the shader ball have a VRayUserAttributethat dictates different values.
UI Expand
title
UI Path: ||Hypershade|| > Create panel > VRay section > Utilities > VRay User Color
Image RemovedImage Added
Column
width
5%
Column
width
33%
...
Example: Animated Custom Color Attribute
Section
Column
width
55%
A VRayUserColor texture can control VRayMtl color parameters by a user attribute in an animation. A user attribute is assigned to an object with the help of scripting.
For this example, use MEL scripting to create a custom attribute of type float3, called myColor with a vrayUserColor_ prefix. The type float 3 means that this attribute holds 3 float values.