This page provides information on the Multi Sub-Object Map.
The VRayMultiSubTex texture allows the user to control any parameter that can be mapped based on the Object ID or Face ID on which the final material is applied. In the image shown here Get ID from had its type set to Object ID, and each of the Num IDs were given a different color via a VRayColor texture
UI Path: ||Material Editor window|| > Material/Map Browser > Maps > V-Ray > VRayMultiSubTex
Get ID from – Specifies the meaning of the ID parameters.
Face material ID – The VRayMultiSubTex will consider the face IDs of the object when feeding the data (color or texture) to the material.
Object ID – The VRayMultiSubTex will consider the Object IDs of the object when feeding the data (color or texture) to the material.
Random by Node Handle – Each node in 3ds Max is assigned a unique number (a handle) when it is created. This option generates the color index based on that node ID. It is useful because the node handle survives through scene editing - f.e. if you add/remove other objects, or rename them, you will still get the same colors.
Random by RenderID – The VRayMultiSubTex will assign random colors based on RenderIDs.
Random by Name – Generates a color index based on the name of the node that the texture is applied to. This allows the color to remain consistent if the object is merged into another scene, or X-Ref'd etc.
Random by ParticleID – The VRayMultiSubTex will assign random colors based on ParticleID.
Random by InstanceID – The VRayMultiSubTex will assign random colors based on InstanceID.
Blend color and texture – When enabled, the alpha of the sub-textures is used to blend between the color for the respective material ID and the texture color. When disabled, the texture alpha is returned directly and the color specified in the VRayMultiSubTex texture itself for the given material ID is ignored.
Default Color – A default color or texture for objects without Object IDs or Face IDs.
Num IDs – Can be used to set the number of sub-textures.
Delete unused – Deletes disabled slots from the list.
ID (1-20) – Specifies a color or a texture to be assigned to the material when it is assigned on a object with the current ID.
The VRayMultiSubTex texmaps list can be managed through several exported functions:
addSubtex – Add the specified number of sub-textures.
deleteSubtex – Delete one or more sub-textures. The first parameter is always the index of the first texture slot to delete, the second is the number of textures to delete (if omitted defaults to 1).
deleteUnused – Delete all sub-textures which are disabled from their respective UI button.