uv_island_operation
Clean up UV islands after unwrapping by equalizing scale, reducing stretch, aligning or randomizing rotation, arranging islands, marking seams, and welding close UV points.
Instructions
Tidy UV islands after unwrapping.
Args: object_name: Mesh object with a UV map. operation: One of: AVERAGE_SCALE (give every island the same texel size relative to its 3D area, so textures don't look blurrier on some parts), MINIMIZE_STRETCH (relax UVs to reduce distortion: iterations), ALIGN_ROTATION (turn islands to line up with the axes), RANDOMIZE (jitter islands so tiled textures don't repeat visibly: rotation in radians, scale_variation, offset, seed), SEAMS_FROM_ISLANDS (mark seams along the current island borders), ARRANGE (lay islands out in rows, new in 5.0: margin), WELD (merge UV points closer than threshold). selection: "ALL" for the whole mesh, or "CURRENT" for the faces already selected. iterations: MINIMIZE_STRETCH passes, 1 to 1000. rotation: RANDOMIZE maximum rotation, 0 to 6.283 radians. scale_variation: RANDOMIZE scale range, 0.0 to 1.0. offset: RANDOMIZE maximum position change, 0.0 to 1.0. seed: RANDOMIZE seed, 0 or more. margin: ARRANGE spacing, 0.0 to 1.0. threshold: WELD distance, 0.0 to 1.0.
Returns: Dict with the operation and the object.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| margin | No | ||
| offset | No | ||
| rotation | No | ||
| operation | Yes | ||
| selection | No | ALL | |
| threshold | No | ||
| iterations | No | ||
| object_name | Yes | ||
| scale_variation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||