Map attributes

An attribute map is a two-dimensional image with values that correspond, or map, to attributes of points on a three-dimensional surface. This mapping is relative to the U/V parameterization of the surface.

You can import image files created in other programs and use their alpha channel values or luminance values as attribute maps. The alpha channel is the channel in an image that contains the opacity information. Not all images have an alpha channel. Luminance refers to the intensity or brightness of the image.

Attribute map values are represented by grayscales, with black representing a value of 0 and white representing a value of 1.

You can also export the values on your Artisan surfaces into image files.

You can import and export attribute maps in any file format supported by Maya. See Artisan Tool Settings.

Note: Make sure that the surfaces have UVs before importing or exporting attribute maps. You can create UVs for polygonal or subdivision surfaces. See Mapping UVs or see Mapping UVs for subdivision surfaces in the Subdivision Surface Modeling guide (www.autodesk.com/maya-docs-archive ).

Import attribute maps

The Artisan brush tool you select, and its settings, determine the result you get when you import an attribute map to a surface. Artisan maps the attribute values onto the surface vertices relative to the U/V surface direction and applies the Artisan tool settings to the vertices using the mapped values.

To import an attribute map

  1. Select the surface or surfaces you want to apply the map to.
  2. Select the Artisan brush tool and open the Tool Settings editor.
  3. Select a Paint operation and set an Opacity value, and change any other settings, as required.
  4. Open the Attribute Maps section and then the Import section.
  5. Select the Import Value. The default is Luminance.
  6. If you selected the Paint Selection Tool, enter a value for the Threshold. This threshold defines the minimum value to be affected by the tool selection type.
  7. If you are importing a map that was created in Artisan from multiple surfaces, turn on Reassign Attribute Maps. For more information, see the section below, "Import Artisan attribute maps to multiple surfaces".
  8. Click the Import button.

    The Import window opens.

  9. On Linux, to preview the image before importing it, select it, then click the See Image button. The grayscales represent the values, where white represents a value of 1 and black represents a value of 0.
  10. Select the image and click the Import button. Artisan applies the values to the selected surface(s) using the selected tool settings.

Import Artisan attribute maps to multiple surfaces

If the attribute map was created from multiple surfaces in Artisan (see the next section, "Export attribute maps") and you want to import the map for these surfaces back to the same surfaces, the file names of the attribute map must match the surface file names. Also, you must turn on Reassign Attribute Maps when you import.

For example, suppose you create the following two surfaces and export the attribute map, calling it xando.

Artisan creates two files, xando_nurbsPlane1_nurbsPlaneShape1 and xando_nurbsSphere1_nurbsSphereShape1. It saves the attribute maps separately for each surface in these files.

To import these maps back to the same surfaces, follow steps 1 through 6 in the above procedure, "To import an attribute map". For step 7, import either the base file (xando) or one of the files associated with the surface (xando_nurbsPlane1_nurbsPlaneShape1 or xando_nurbsSphere1_nurbsSphereShape1). Artisan automatically maps each file to the appropriate surface.

In the following example, the attribute was imported with the Sculpt Geometry Tool selected and set to Push.

If you do not turn Reassign Attribute Maps on, the imported file maps to each selected surface.

Export attribute maps

You can export attribute maps created with the Paint Selection, Paint Scripts, Paint Vertex Color, Paint Attributes, Paint Cluster Weights, Paint Jiggle Weights, Paint Soft Body Weights, Paint Fluids, and Paint Fur Attributes. The values you paint with these tools become either the luminance values or alpha values in the attribute map (except for the Paint Vertex Color Tool, from which you can export RGB and RGBA values).

To export an attribute map

  1. Create surface values using one of the Artisan tools (Paint Selection, Paint Scripts, Paint Vertex Color, Paint Attributes, Paint Cluster Weights, Paint Jiggle Weights, Paint Soft Body Weights, Paint Fluids, and Paint Fur Attributes).
  2. Select the surface or surfaces with values you want to export, then open the Tool Settings editor.
  3. Open the Attributes Map then Export sections.
  4. Select the Export Value.
  5. Set the Map Size in the X and Y direction. The default is 256 pixels.
  6. Turn Keep Aspect Ratio on to maintain the height to width ratio of the attribute map when you export it.
  7. Select the format you want to save the image in.
  8. Click the Export button.

    The Export window opens.

  9. In the Export window, select the directory location, type the file name, then click the Export button.

    If you select more than one surface in step 2, Artisan concatenates the name you type with each surface name and creates a file for each surface.

    For example, suppose you select two surfaces called nurbsSphereShape1 and nurbsSphereShape2, and type checker for the map name. Artisan saves the attributes of nurbsSphereShape1 in the file checker_nurbsSphere1_nurbsSphereShape1 and the attributes of nurbsSphereShape2 in the file checker_nurbsSphere2_nurbsSphereShape2. If you include the file name extension (for example, checker.rgb) Artisan appends the extension to the concatenated names (for example, checker_nurbsSphereShape1.rgb and checker_nurbsSphereShape2.rgb).

    To import these attribute files, the surfaces you import them to must have the same name as the surfaces with the original attributes.