Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width62%

Allows the user to specify their own attributes, which can then be accessed with the the User-defined Color Map (VRayUserColor) and User-defined Scalar Map (VRayUserScalar) textures to provide per-object values for shading attributes. They can also be used in the file name of File nodes to resolve the bitmap file name on a per-object basis. Several attributes can be specified in the string, separated with a semicolon ';' character. User attributes can also be specified on transform nodes. The final string of user attributes for a given object is a concatenation of the user attributes specified on the shape of the object and the user attributes specified on its parent nodes along the DAG path. This allows to conveniently add attributes to a large part of the DAG hierarchy.

UI Text Box
typeinfo

Starting with V-Ray 5.0, when user attributes are used in the beginning of a file path, V-Ray treats the path as absolute. For example, if a file node loads a texture from <userAttribute>/texture.png, the path is treated as absolute and the Maya project path will no longer be prepended.

 

UI Path: ||Select mesh|| > Attribute Editor > Attributes menu > VRay > User Attributes

Column
width5%

 

Column
width33%

...

User Attributes

...

Section
Column
width62%

User attributes – A list of attributes separated by semicolons that are assigned to the mesh.


Expand
titleScripting
UI Text Box
typeinfo

 Add to node:

vray addAttributesFromGroup "pSphereShape1" "vray_user_attributes" 1;

Attributes:

vrayUserAttributes

Column
width5%

 

Column
width33%

...