Control XGen attributes using vertex maps

You can paint XGen attribute values onto the vertices of a bound mesh using the Paint Vertex Color Tool. For example, painting a mask or color sets these values on a per-vertex basis directly on the mesh. Note that the resolution of the map is dependent on the resolution of the bound mesh. If you require higher resolutions, use you can paint a Ptex map, which uses texel resolution (see Control primitives using Ptex maps.

  1. Click the expression icon beside the attribute you want to control using a vertex map.
  2. In the XGen Expression Editor, click the Samples tab and browse to Global > Color > UI > map_vertexcolormap.

    The XGen Expression Editor displays the following expression:

    $a=vmap('${DESC}/colorSet1/');#vpaint
    $a
  3. Click Accept.
  4. In the XGen Editor, click this icon beside the mask or attribute you setting with the color vertex map.
  5. Use the Paint Vertex Color Tool to paint the mesh.
  6. Click this icon to save the vertex map.

Related topics