Skip to main content

Add materials to attributes with direct mapping

This tutorial shows how to let customers change the color or texture of parts of a 3D model. You prepare material groups in your 3D file, create materials in Expivi, and map them to the values of an attribute.

Before you start​

  • You need 3D software, such as Blender, 3ds Max or Maya, to edit your 3D file.
  • You need a product with a 3D visualization.

Step 1: Add material groups to your 3D file​

Material groups (matgroups) decide which parts of the 3D model can change color or texture.

  1. In your 3D software, add an empty and name it mat_<matgroupname>_e.

  2. Place the parts that can change material or texture under this empty.

  3. Export the 3D file.

  4. In Expivi, open the 3D visualization and import the new file on the Imports tab.

    Imports tab of a 3D visualization

Step 2: Create materials​

  1. Go to Assets › Materials.

  2. Click Add material and create each material you need.

    Materials page with the Add material button

Step 3: Set a default material​

  1. Go to Visualization › 3D Visualization and open your 3D visualization.

  2. Open the Material groups tab.

  3. Click the edit button of the material group.

  4. Open the Materials tab.

  5. Select the Default checkbox for the material that should be selected by default.

    Setting the default material of a material group

Step 4: Map the materials to an attribute​

  1. Go to Catalog › Attributes and create a configurable attribute.

  2. Add a value for each option customers can choose.

  3. In the attribute editor, scroll down to Material Mapper and click + Create Material Mapper.

    Material Mapper section of an attribute

  4. Enter a name and identifier, select the attribute, and click Save.

  5. Scroll down to the mapping. For each attribute value, add the material it should show.

    Mapping attribute values to materials

The mapping is saved automatically.

Step 5: Add the attribute to the layout​

  1. Open your product. If the attribute isn't linked to the product yet, link it in the Attributes section.

  2. Select Layout.

  3. Click + Add next to the attribute with the material mapping.

  4. Click the pencil icon next to the attribute to choose how it's displayed.

    Adding an attribute in the layout editor