This page provides information on V-Ray Attributes that can be added to 2d Placement and 3d placement nodes.

 

Page Contents ×

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 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  Path


 

||Select placement node|| > Attribute Editor >  Attributes menu > VRay > (select attribute set)

 

 

 

 

2D Placement and 3D Placement Options


 

 

 

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

 

 Scripting: 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";

 Scripting: 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";

 

SamplerInfo node


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.

 

 

 

 

 

 

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


 Scripting: 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";

Notes


  • 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.