---
title: "Fitting maps"
url: /docs/en-us/avatar/layered-accessories/fitting-maps
last_updated: 2026-12-04T23:21:20Z
description: "Fitting maps are grayscale images that control which parts of a layered accessory follow the body and which parts keep their authored shape."
---

# Fitting maps

> **Info:** To ensure that you're able to access fitting maps in Studio, you must first enable the beta feature through **File** ⟩ **Beta Features** ⟩ **Layered Clothing Fitting Maps**.

Fitting maps are optional grayscale images that you can add to a `Class.WrapLayer` on a layered accessory to control how it fits different [character bodies](/docs/en-us/avatar/character-bodies.md). Without fitting maps, a layered accessory stretches to match the body underneath it, like a rubber shell. With fitting maps, you can choose which parts of the accessory follow the body and which parts keep their authored shape and proportions.

_Without fitting maps_

_With fitting maps_

Fitting maps are additive. Existing layered accessories keep working without changes, and you don't need to migrate them. A layer without fitting maps keeps the standard fit, so one avatar can mix layers that use fitting maps with layers that don't.

> **Info:** Fitting maps control fit and silhouette, but they don't make an accessory fit tighter without clipping. A cage can't wrap tightly curved geometry without poking into the body or puffing out, and fitting maps don't change that.
## Fitting methods

Fitting maps blend between two fitting methods:

- **RBF**, also called legacy RBF, is the standard fitting method for layered accessories. It stretches the accessory to match the body underneath.
- **ShapeFit** is the newer fitting algorithm. It reads the fitting maps on an accessory and fits the accessory to the target body while it keeps the shape that the fitting maps define.

The standard fit stretches every part of an accessory to match the body, which causes two common problems:

1. **Structure collapse** - Stiff parts, such as hat brims, collars, and shoe soles, melt into the shape of the body instead of holding their form.
2. **Proportions change** - An accessory that looks right on one body loses its intended proportions on another, so you end up designing for a body type instead of a style.

Fitting maps solve these problems by letting you mark the areas that hold their shape. For example, on a cap, the bill can stay rigid while the crown conforms to the head.

## Fitting map values

Each fitting map is a single-channel 8-bit image in UV space, up to 1024 pixels on each side. Studio reads only the red channel. Each vertex on the accessory reads the pixel nearest its UV coordinate.

The value at a vertex controls how its fit behaves:

- **0 (black)** keeps the vertex on the standard fit, which uses RBF.
- **255 (white)** limits the fit of the vertex to the transforms that the map allows, which uses ShapeFit.
- **Values in between** blend the two. Higher values follow the white behavior more closely.

For example, to keep the bill of a cap rigid while the crown conforms to the head, paint the bill white and the crown darker.

![An example baseball cap with a fitting map.](../../assets/avatar/fitting-maps/baseball-cap.png)_Example map value painting_

![Fitting map values](../../assets/avatar/fitting-maps/fitting-map-values.png)_Fitting map values_

## Fitting map types

Each fitting map is a different `Class.WrapLayer` property that determines how the accessory should move. At full strength (`255`), each map allows only the transforms listed in the following table.

| **Property** | **Transforms allowed at full strength** | **Typical use** |
| --- | --- | --- |
| `Class.WrapLayer.RotateUniformScaleContent\|RotateUniformScaleContent` | Translation, rotation, and uniform scale | Hats, pauldrons, and backpacks. These accessories scale evenly with the body and rotate with the body part they attach to. |
| `Class.WrapLayer.UniformScaleContent\|UniformScaleContent` | Translation and uniform scale | Shoes, pins, and tails. These accessories keep their orientation. A shoe sole stays aligned to the ground, pins stay aligned to the front, and tails stay aligned to the back. |
| `Class.WrapLayer.NonUniformScaleContent\|NonUniformScaleContent` | Translation and scale along the avatar root's X, Y, and Z axes, with no rotation | Dresses, skirts, and long coats. A skirt scales its length and width independently based on the legs, and it doesn't tilt as the legs move. |

If more than one fitting map is nonzero at the same vertex, the map with the highest value at that vertex applies, at its own value. For example, if a vertex is `200` on `Class.WrapLayer.RotateUniformScaleContent` and `50` on `Class.WrapLayer.UniformScaleContent`, the rotate map applies at `200` and the uniform map has no effect at that vertex.

If two or more maps are exactly tied, Studio uses this priority order:

1. `Class.WrapLayer.UniformScaleContent`
2. `Class.WrapLayer.NonUniformScaleContent`
3. `Class.WrapLayer.RotateUniformScaleContent`

## TargetShaping

`Class.WrapLayer.TargetShaping` is a number from `0` (default) to `1`. It affects only layers that use fitting maps.

- `0` holds the inner cage of the layer firmly to the body or the layered accessory underneath it.
- `1` removes that hold, so the accessory keeps its original shape and is less affected by the body shape.
- **Values in between** blend the two.

> **Warning:** Setting `Class.WrapLayer.TargetShaping` above `0` can let the body clip through the accessory or float inside it. The body still uses the standard fit, while the inner cage of the accessory can move independently.
## Create fitting maps

A fitting map is a black-and-white mask, so you can use any app that paints grayscale images to create fitting maps, such as Substance Painter, Photoshop, Maya, or Blender. To create a fitting map in one of these tools:

1. Paint white on the areas that should keep their shape, black on the areas that should follow the body, and gray on the areas that should blend the two.
2. Export the map as an 8-bit grayscale image that's no larger than 1024 pixels on either side.

![Example grayscale geometry.](../../assets/avatar/fitting-maps/create-geo.png)

![Example grayscale UV unwrap image for the grayscale geometry.](../../assets/avatar/fitting-maps/create-UV.png)

### Fitting map template

Roblox provides an [Advanced R15 template](/docs/en-us/avatar/resources.md#advanced-r15-rigs-1) that utilizes a mannequin body and [advanced R15](/docs/en-us/avatar/character-bodies/specifications.md#advanced-r15-rigs) rig to fit layered accessories with fitting maps.

_Maya_

_Blender_

As you use this template, consider the following:

- Use the layered accessory naming conventions.
- Match each layered accessory's asset name with post fix `UniformScaleMap`, `RotateUniformScaleMap`, and `NonUniformScaleMap`. The scale type chosen depends on the asset type, such as `AssetName_UniformScaleMap`.
- When you are ready to [export your creation](/docs/en-us/avatar/layered-accessories/export.md), export only the layered accessory and joints with fitting maps. When you later import the `.fbx` file, your fitting map automatically loads under the `Class.WrapLayer` object's properties.

### Creation best practices

Fitting maps work best on layered accessories that don't need to deform to extreme shapes and proportions and that don't interact closely with the body. Layered accessories that fit closely to the shape of the character body either shouldn't use fitting maps at all, or should use them very subtly and only where they don't interact directly with the underlying body.

It's important to identify where layered accessories should follow the character's body and where they should keep their original shape. The value differs according to the body types you are creating layered accessories for. The larger the difference that a layered accessories needs to accommodate, the less the garment should blend back to the original asset shape.

To demonstrate this principle, the following image examples subtly blend the black value into gray where the trench coat should drape away from the body. The buttons are whiter to maintain its original shape, and since they're close to the trench coat, it will follow the underlying value.

You can assign a fully white value to layered accessories that you want to stay rigid and keep their original shape. The following bow accessory uses a fully white value for this reason. If an accessory should keep some of the underlying body shape, you can use a value close to white, but not completely white.

Layered accessories that need to conform to the body while still keeping their structure and original shape benefit from blending to a darker value where it should fit over the body, and to a lighter gray where it should remain malleable while keeping its original shape. For example, the following backpack blends the straps to the overall backpack, and the paultrons blend the armored bird head from a lighter gray to a mid gray so it keeps its shape and still deforms over the shoulders it's worn on.

Similarly with skirts, it's important to blend from black where the waist should fit and deform to the waist size it's worn on to white where the skirt resists the wrap deformer. This keeps the skirt's original shape and drape.

Layered accessories with combined elements can be tricky, and they sometimes work better as separate assets. For example, because the following shoulder armor floats away from the underlying mesh, the artist painted them a darker value so they don't intersect the body.

To review any of these examples, download the following [reference files](../../assets/avatar/fitting-maps/Fitting-Maps-Examples.zip).

## Import fitting maps

After you create your fitting map in a third-party tool, you can import it into Studio and connect it to your layered accessory. To import a fitting map:

1. Import the image into Studio as a separate texture, then copy the asset ID of the texture.
2. In the `Class.WrapLayer` properties, paste the asset ID into the matching fitting map property.

## Fallbacks and limits

- If a fitting map fails to load, is larger than 1024 pixels on either side, or is unreadable, Studio uses the standard fit for that layer.
- Editing the pixels of an `Class.EditableImage|EditableImage` fitting map doesn't refit the accessory until the next change to the layer.