02. Material Section Groups
Purpose
Set up the AttachedAccessory data so players can recolor the parts of an attached accessory (glasses, earrings, hair accessories, piercings, masks) in CAZ.
Preparation
- An attached accessory registered as described in 01. Overview
- For gem parts, a gem mesh made to the inZOI gem spec (see MI_Char_Gem_Diamond below)
SubCategories
The subcategory list shown in CAZ. It references GarmentSubCategory.json. The default values are:
| Category | SubCategory | Name in CAZ |
|---|---|---|
| Glasses | GlassesGlasses | Glasses |
Sunglasses | Sunglasses | |
Goggles | Goggles | |
| Earrings | DropEarring | Drop |
StudEarring | Stud | |
GemEarring | Gem | |
RingEarring | Ring | |
Earphone | Earphones | |
| Hair accessories | Headset | Headset |
Hairband | Hairband | |
Hairpin | Hairpin | |
Tiara | Tiara | |
OthersHairAccessory | Other hair accessories | |
| Piercings | EyebrowPiercing | Eyebrow |
NosePiercing | Nose | |
LipPiercing | Lip | |
| Masks | MaskMask | Mask |
Pacifier | Pacifier |
AccessoryType
The accessory type used to tell accessories apart in the data.
| AccessoryType | |
|---|---|
| Glasses | Glasses |
| Earring | Earrings |
| HairAccessory | Hair accessories |
| Piercing | Piercings |
| Mask | Masks |
MaterialSectionGroups
Sets the areas that players can control in CAZ.
| Field | Description | |
|---|---|---|
| ListKey | A format left over from legacy data. Keep the default value. | |
| MaterialSection | The material slot number of the static mesh. Slots start at 0. | |
| MaterialType | Accessory | A part that uses the regular costume material. |
Glass | A glasses lens part. Set this to let players change the lens color. | |
Jewelry | A gem part. Set this to let players change the gem color. A gem can use up to 3 colors, through R, G and B. | |
Hair | A fur part that uses the hair material. Set this to let players change the fur color. | |
| NumColorChannels | The maximum number of colors this part uses. Up to 3, through R, G and B.- The maximum depends on the MaterialType. Glass and Hair allow only 1.- When you add a part, enter the count for that part as well. For example, if you add a gem part, enter its count too. | |
| ChannelDatas | ListKey | Use R, G or B. Each value connects to the material parameter predefined for the MaterialType. |
AITexture | Whether the part can use My Texture. True or False. | |
DescTextId | The name of the part button shown in the GUI. |
Materials
The master MI for each part.
| MaterialType | Master MI |
|---|---|
| Accessory | MI_Char_Standard |
| Glass | MI_Char_Glasses |
| Jewelry | MI_Char_Gem_Diamond |
| Hair | MI_HairCard_Base |
MI_Char_Gem_Diamond
Gems must use a mesh made to the set spec.
The gem mesh in the file below works with the T_gem_C and T_gem_N textures.
Depending on the setup, the mesh may need vertex colors.

This is the default state of the material.

Enable 3 Color = 1
The parameters in the (G) Color and (B) Color panels below become available.
- Vertex colors are required. Without them, the colors come out unintended.
- In this state, the color cannot be changed in CAZ.

Enable Color Custom = 1
The color is overridden by the R_Color_Custom parameter below.
- The material is ready for color changes in CAZ.
- Vertex colors are not required.

Enable 3 Color = 1 and Enable Color Custom = 1
The colors are overridden by the R_Color_Custom, G_Color_Custom and B_Color_Custom parameters.
- The material is ready for color changes in CAZ.
- Vertex colors are required. Without them, the colors come out unintended.
