set_face_sets
Split a mesh into colored face sets to isolate or hide regions during sculpting, enabling focused brush work and automasking per set.
Instructions
Split a mesh into face sets: colored regions for sculpting one part at a time.
In sculpt mode, face sets can be hidden or isolated, and brushes and automasking can stay within one set.
Args: object_name: Mesh object. mode: LOOSE_PARTS (one set per separate piece), MATERIALS (one set per material slot), ASSIGN (face_indices into face_set), CLEAR. face_indices: ASSIGN only: the faces to change. face_set: ASSIGN only: set number, 1 or more.
Returns: Dict with the number of distinct face sets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| face_set | No | ||
| object_name | Yes | ||
| face_indices | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||