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 2d Placement and 3d placement nodes.

 

Overview


The V-Ray Additional Attributes can be added to 2d Placement and 3d placement nodes. This is done from the Attributes > VRay menu in the Attribute Editor with the placement node selected.

In cases where geometry objects have multiple UV sets, this allows for explicitly specifying the uv set to be used without the need for going through the UV Linking menu in Maya, and thus avoiding any connections between nodes by simply inputting the name of the UV set.

In cases where the geometry is a VRayProxy File Formats reading a .vrmesh or .abc (Alembic) file(s), the UV set field can be used to specify custom attributes coming in with the proxy. One of the most common use-cases is to read Rest Position attributes from Alembic files coming in from Houdini to make 3D textures follow the object deformation.

The same attribute can be added to Maya's SamplerInfo node to help specify the UV set to be used when using the samplerInfo's U and V output connections.

UI Expand
titleUI Path: ||Select placement node|| > Attribute Editor > Attributes menu > VRay > (select attribute set)
Column
width10%

 

Column
width35%

 

Column
width10%

 

Column
width35%

 

Column
width10%

 

 

 

2D Placement and 3D Placement Options


Section
Column
width62%

UV set name – The name of the UV set to be used.

 

Expand
titleScripting: 2d Placement attributes

Add to node:

vray addAttributesFromGroup place2dTexture1 vray_2d_placement_options 1;

Remove from node:

vray addAttributesFromGroup place2dTexture1 vray_2d_placement_options 0;

Attributes:

vrayUVSetName

Example:

setAttr -type "string" place2dTexture1.vrayUVSetName "uvSet1";

Expand
titleScripting: 3d Placement attributes

Add to node:

vray addAttributesFromGroup place3dTexture1 vray_3d_placement_options 1;

Remove from node:

vray addAttributesFromGroup place3dTexture1 vray_3d_placement_options 0;

Attributes:

vrayUVSetName3D

Example:

setAttr -type "string" place2dTexture1.vrayUVSetName3D "uvSet1";

Column
width5%

 

Column
width33%

 

SamplerInfo node


Section
Column
width62%

The 2D Placement Options attributes can also be added to Maya's samplerInfo node. This can be used to output UV passes for a specific object and a specific UV set in case the object has multiple UV sets. To do this, the samplerInfo's U and V outputs can be connected to the R and G texture inputs of the VRayExtraTex render element. Then the UV set to be used is specified in the UV set name field of the 2D Placement Options attributes assigned to the samplerInfo. If needed, multiple samplerInfo nodes with different UV set names specified can be used with multiple VRayExtraTex render elements to output more than one UV passes at the same time.

Column
width5%
 
Column
width33%

Section
Column
width62%

UV set name – The name of the UV set to be used.


Expand
titleScripting: 2d Placement attributes

Add to node:

vray addAttributesFromGroup samplerInfo1 vray_2d_placement_options 1;

Remove from node:

vray addAttributesFromGroup samplerInfo1 vray_2d_placement_options 0;

Attributes:

vrayUVSetName

Example:

setAttr -type "string" samplerInfo1.vrayUVSetName "tralala" "uvSet1";

Column
width5%

 

Column
width33%

 

 

Notes


Fancy Bullets
  • The UV set name field is case-sensitive. V-Ray will not be able to use the correct UV set if its name is mistyped, in which case the currently linked UV set, as specified in the UV Linker, will be used.