aiUserData

Arnold provides his own nodes to retrieve user data.
 
It can be created using the following methods (replace the end by the variable type needed):
  • Hypershade: Arnold / Shader / aiUserDataInt
  • MEL command: createNode aiUserDataInt;
 
The aiUserDataInt attributes
 
This important parameters are
 
Param name a shader attribute name found in the asset manager configuration from which the outvalue should be read
Default the default value to use if the corresponding shader attribute is not found
 
Shader attribute configuration in the asset manager
 
Notice that the name of the shader attribute in the asset manager is the same as the name declared in the aiUserDataInt
The value of this shader attribute will be randomized between Minimum and Maximum value and passed to the aiUserDataIntto be fed in other shaders.
Notice that it is also possible to feed this attribute from a PP attribute value.