GetUserData

The CrowdGetUserDataVRay can be used to get a value from the asset manager and feed it in shaders.
 
It can be created using the following methods:
  • Hypershade: Maya / Utilities / CrowdGetUserDataVRay
  • MEL command: createNode CrowdGetUserDataVRay;
 
The crowd get user data for V-Ray shader attributes
 
This node only contains:
 
Param Type the type of a parameter to look for and from which the outvalue should be read. First type is mtlIndex: V-Ray only allows storing one integer parameter per mesh which must be called mtlIndex. If a shader attribute named mtlIndex is found in the asset manager configuration it will be read automatically in this mode
Default the default value to use if the corresponding param type attribute is not found.

 

Shader attribute configuration in the asser manager
 
In order to get linked to the GetUserData shader, the shader attributes name in the asset manager should always be mtlIndex. 
The value of this shader attribute will be randomized between Minimum and Maximum value and passed to the GetUserData shader.
Notice that it is also possible to feed this attribute from a PP attribute value.