pack_uv_islands
Pack UV islands of a mesh object to fit efficiently within UV space, with control over margin, rotation, and scaling to optimize texture layout.
Instructions
Pack UV islands to fit efficiently within the UV space.
Args: object_name: Name of the mesh object. margin: Margin between packed islands (0.0-1.0). rotate: Allow islands to rotate for a tighter fit. rotate_method: ANY, CARDINAL (90 degree steps), AXIS_ALIGNED, AXIS_ALIGNED_X or AXIS_ALIGNED_Y. scale: Scale islands to fill the space. Turn off after set_texel_density, or the pack undoes the density.
Returns: Confirmation dict with object name.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"object_name": "<object_name>"
},
"name": "pack_uv_islands"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| margin | No | ||
| rotate | No | ||
| object_name | Yes | ||
| rotate_method | No | ANY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||