Versions Compared

Key

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

This page provides information on V-Ray Attributes that can be added to transform nodes.

Overview


Section
Column
width62%

V-Ray Extra Attributes are attributes that may be added to various object nodes in Maya to add additional V-Ray functionality to the object(s). Extra Attributes may be added to a node through the Attribute Editor's menu bar: Attributes > VRay when the object's node is currently selected.

Transform Attributes are specific to transform nodes in Maya to accomplish a variety of tasks allowing you to exempt or skip the object from rendering, assign the object an ID number, or assign the object a user-defined attribute.

 

UI Path: ||Select transform node|| > Attribute EditorAttributes menu > VRay > (select attribute set)

Column
width5%

 

Column
width33%

 

 

Skip Rendering


Section
Column
width62%

This group allows you to exclude parts of the scene from rendering.

Skip rendering – When enabled, the objects below the transform are not included in the V-Ray scene and are not be rendered.

 

Expand
titleScripting
UI Text Box
typeinfo

Enter this MEL code snippet to Add this V-Ray Extra Attribute to the named object (here called "pSphere1"):

vray addAttributesFromGroup "pSphere1" "vray_skip_export" 1;

Attribute name that is added with the above MEL snippet :

vraySkipExport

Column
width5%

 

Column
width33%

Object ID


Section
Column
width62%

This group allows to assign an object ID to parts of the scene, for use with the Multimatte render element.

Object ID – Specifies an ID for the objects below the transform.

 

Expand
titleScripting
UI Text Box
typeinfo

 Enter this MEL code snippet to Add this V-Ray Extra Attribute to the named object (here called "pSphere1"):

  vray addAttributesFromGroup "pSphere1" "vray_objectID" 1;

Attribute name that is added with the above MEL snippet :

vrayObjectID

Column
width5%

 

Column
width33%

 

User Attributes


Section
Column
width62%

Allows the user to specify their own attributes, which can then be accessed with the VRayUserColor  and 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 shape 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.

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

 

Expand
titleScripting
UI Text Box
typeinfo

 Enter this MEL code snippet to Add this V-Ray Extra Attribute to the named object (here called "pSphere1"):

  vray addAttributesFromGroup "pSphere1" "vray_user_attributes" 1;

Attribute name that is added with the above MEL snippet :

vrayUserAttributes

Column
width5%

 

Column
width33%