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.
-
In your 3D software, add an empty and name it
mat_<matgroupname>_e. -
Place the parts that can change material or texture under this empty.
-
Export the 3D file.
-
In Expivi, open the 3D visualization and import the new file on the Imports tab.

Step 2: Create materials
-
Go to Assets › Materials.
-
Click Add material and create each material you need.

Step 3: Set a default material
-
Go to Visualization › 3D Visualization and open your 3D visualization.
-
Open the Material groups tab.
-
Click the edit button of the material group.
-
Open the Materials tab.
-
Select the Default checkbox for the material that should be selected by default.

Step 4: Map the materials to an attribute
-
Go to Catalog › Attributes and create a configurable attribute.
-
Add a value for each option customers can choose.
-
In the attribute editor, scroll down to Material Mapper and click + Create Material Mapper.

-
Enter a name and identifier, select the attribute, and click Save.
-
Scroll down to the mapping. For each attribute value, add the material it should show.

The mapping is saved automatically.
Step 5: Add the attribute to the layout
-
Open your product. If the attribute isn't linked to the product yet, link it in the Attributes section.
-
Select Layout.
-
Click + Add next to the attribute with the material mapping.
-
Click the pencil icon next to the attribute to choose how it's displayed.
