Skip to content
AlphaToolBox3D is in early alpha: features are incomplete and things can break. Use it at your own risk and keep copies of your files. Report a problem
ToolBox3D

Docs · Python API

tb.ops.uv

64 operations. Without targets=, an operation works on the current selection, like its button in the editor.

Align

tb.ops.uv.align(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    axis: Literal["auto", "u", "v"] = "auto",
    to: Literal["min", "center", "max"] = "center",
) -> Result

Align the selected UVs on one coordinate.

  • Operation uv.align
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
axisLiteral["auto", "u", "v"]"auto"Auto aligns on the axis where the selection is thinner. (auto / u / v).
toLiteral["min", "center", "max"]"center"Line the UVs up at the selection's lowest coordinate, the middle of its bounds or its highest coordinate. (min / center / max).

Average Islands Scale

tb.ops.uv.average_scale(*, meshes: Sequence[MeshRef] = ..., uv_map: str = ...) -> Result

Scale the selected UV islands so they all have the same texel density.

  • Operation uv.average_scale
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).

Reset Unwrap Parts

tb.ops.uv.clear_parts(*, meshes: Sequence[MeshRef] = ...) -> Result

Remove manual part labels; automatic unwrap plans parts again.

  • Operation uv.clear_parts
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).

Clear Seam

tb.ops.uv.clear_seam(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    source: Literal["auto", "mesh", "uv"] = "auto",
    edges: Sequence[int] = ...,
) -> Result

Clear UV seams from the selected edges.

  • Operation uv.clear_seam
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
sourceLiteral["auto", "mesh", "uv"]"auto"Which selection supplies the edges. (auto / mesh / uv).
edgesSequence[int]—Explicit mesh edge indices (one target mesh).

Copy UVs

tb.ops.uv.copy(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Copy the UVs of the selected faces (in face order).

  • Operation uv.copy
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Distribute

tb.ops.uv.distribute(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Space the selected UVs evenly along their main axis.

  • Operation uv.distribute
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Export UV Layout

tb.ops.uv.export_layout(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    size: int = 2048,
    tiles: Literal["auto", "none", "udim"] = "auto",
    name: str = "uv_layout",
) -> Result

Export the UV wireframe as PNG: one image of the 0–1 square, or one per UDIM tile the layout uses (name.1001.png, …).

  • Operation uv.export_layout
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
sizeint2048Image width and height in pixels. (64…8192).
tilesLiteral["auto", "none", "udim"]"auto"'udim' writes one image per tile used; 'auto' does so when the layout reaches past tile 1001. (auto / none / udim).
namestr"uv_layout"File name stem.

Follow Active Quads

tb.ops.uv.follow_active_quads(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    face: int = ...,
    spacing: Literal["lengthAverage", "length", "even"] = "lengthAverage",
) -> Result

Lay out the selected quads as a grid following the active quad's UVs.

  • Operation uv.follow_active_quads
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
faceint—The active face (default: the active 3D face, else the first selected UV face).
spacingLiteral["lengthAverage", "length", "even"]"lengthAverage"Row and column sizes: Length Average keeps one true width per ring of quads, Length gives each quad its own true size, Even makes equal squares. (lengthAverage / length / even).

Lightmap Pack

tb.ops.uv.lightmap_pack(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    margin: float = 0.01,
    rotate: bool = True,
    selected_only: bool = False,
) -> Result

Give every face its own non-overlapping chart at true size, packed into the 0–1 square (for lightmaps).

  • Operation uv.lightmap_pack
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
marginfloat0.01Gap between faces in the packed layout. (0…0.2).
rotateboolTrueAllow face turns for a tighter fit.
selected_onlyboolFalseLay out only the selected faces.

Mark Seam

tb.ops.uv.mark_seam(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    source: Literal["auto", "mesh", "uv"] = "auto",
    edges: Sequence[int] = ...,
) -> Result

Mark the selected edges as UV seams (mesh edges selected in the 3D view, else the selected UV edges).

  • Operation uv.mark_seam
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
sourceLiteral["auto", "mesh", "uv"]"auto"Which selection supplies the edges. (auto / mesh / uv).
edgesSequence[int]—Explicit mesh edge indices (one target mesh).

Merge by Distance

tb.ops.uv.merge_by_distance(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    distance: float = 0.0001,
) -> Result

Merge selected UVs of the same vertex that are closer than a distance.

  • Operation uv.merge_by_distance
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
distancefloat0.0001Merge distance in UV units. (0…1).

Merge Unwrap Parts

tb.ops.uv.merge_parts(
    *,
    meshes: Sequence[MeshRef] = ...,
    faces: Sequence[int] = ...,
) -> Result

Merge the whole manual parts touched by the selected faces. Unassigned faces join only when selected.

  • Operation uv.merge_parts
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
facesSequence[int]—Stable face IDs. When absent, uses selected 3D faces, then selected UV faces.

Minimize Stretch

tb.ops.uv.minimize_stretch(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    iterations: int = 20,
) -> Result

Relax the selected islands toward their 3D shape (As-Rigid-As-Possible); unselected and pinned UVs stay.

  • Operation uv.minimize_stretch
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
iterationsint20Solver iterations. (1…500).

Mirror

tb.ops.uv.mirror(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    axis: Literal["u", "v"] = "u",
) -> Result

Flip the selected UVs on U or V about their bounding-box center.

  • Operation uv.mirror
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
axisLiteral["u", "v"]"u"Flip axis. (u / v).

Orient Islands

tb.ops.uv.orient(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    method: Literal["auto", "edge", "world"] = "auto",
    up: Vec3Like = ...,
    all: bool = False,
) -> Result

Turn UV islands upright: the tightest upright box, the selected edge horizontal/vertical, or a world axis pointing up in UV.

  • Operation uv.orient
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
methodLiteral["auto", "edge", "world"]"auto"How islands are turned. (auto / edge / world).
upVec3Like—World method: the world direction that should point along +V (default +Z).
allboolFalseTurn every island instead of only the islands touched by the selection.

Pack Islands

tb.ops.uv.pack(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    margin: float = 0.01,
    rotate: Literal["none", "cardinal", "any", "longSideU", "longSideV"] = "any",
    margin_method: Literal["fraction", "add", "scaled"] = "fraction",
    scale: bool = True,
    tiles: int = 1,
    target: Literal["unitSquare", "closestUdim", "udim", "originalBounds"] = "unitSquare",
    udim_tile: int = 1001,
    pin_method: Literal["ignore", "locked", "scale", "rotation", "rotationScale"] = "locked",
    average_scale: bool = True,
    by_material: bool = False,
    merge_overlap: bool = False,
    shape: Literal["box", "convex", "exact"] = "box",
    quality: Literal["fast", "balanced", "best"] = "balanced",
) -> Result

Pack the selected UV islands into the tile (or a row of UDIM tiles), as large as possible with the margin.

  • Operation uv.pack
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
marginfloat0.01Space between islands, as a share of the tile. (percent; 0…0.5).
rotateLiteral["none", "cardinal", "any", "longSideU", "longSideV"]"any"How islands may turn to pack tighter. Any angle first lines each island up with its smallest bounding box, so a long strip lies straight. Long Side U / V fixes that minimum box’s long side on the chosen axis, with no further packing turns. (none / cardinal / any / longSideU / longSideV).
margin_methodLiteral["fraction", "add", "scaled"]"fraction"Fraction: the margin is the final gap as a fraction of the target square. Add: the margin is in the islands' current UV units, so the gap shrinks or grows with the packing scale. Scaled: like Add, multiplied by the islands' overall size, so the gap stays proportional to the layout. (fraction / add / scaled).
scaleboolTrueScale islands to fill the space (keeping their relative size).
tilesint1Target squares in a horizontal row, starting at the chosen target origin. Original Area requires one; By Material uses one per material. (1…100).
targetLiteral["unitSquare", "closestUdim", "udim", "originalBounds"]"unitSquare"Unit Square starts at 0,0. Closest UDIM uses the authored movable groups' bounding-box center, clamped to UDIM 1001–2000. Original Area uses their original centered inscribed square with uniform scale; pins stay fixed. Non-default targets cannot be combined with By Material. (unitSquare / closestUdim / udim / originalBounds).
udim_tileint10011001 starts at 0,0; 1011 at 0,1. Additional squares extend horizontally from this origin. (1001…2000).
pin_methodLiteral["ignore", "locked", "scale", "rotation", "rotationScale"]"locked"A pin constrains its complete island, even outside selected faces. Keep Size skips density equalization; Keep Rotation prevents all turns; Keep Both does both. Movable pinned groups may translate. A merged group inherits every member constraint. (ignore / locked / scale / rotation / rotationScale).
average_scaleboolTrueGive islands an even texel density first.
by_materialboolFalsePack each material's islands into its own UDIM tile.
merge_overlapboolFalsePack overlapping selected islands as one group, preserving their offsets and mirrored orientation. Touching edges/corners do not merge. A pinned member constrains the whole group; groups spanning material tiles require By Material off.
shapeLiteral["box", "convex", "exact"]"box"Box packs each island's bounding rectangle (fast); Convex Hull uses its convex outline; Exact Shape follows concave outlines to nest islands in their gaps. Locked islands remain box obstacles; movable pin constraints apply to both packers. (box / convex / exact).
qualityLiteral["fast", "balanced", "best"]"balanced"Convex Hull and Exact Shape: the placement grid. Fast is coarse and quick; Best is four times finer and nests islands closer, taking longer. (fast / balanced / best).

Paste UVs

tb.ops.uv.paste(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Paste copied UVs onto the selected faces in face order (faces must match corner counts).

  • Operation uv.paste
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Pin UVs

tb.ops.uv.pin(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    corners: Sequence[int] = ...,
) -> Result

Pin the selected UVs so unwrap and relax keep them in place.

  • Operation uv.pin
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
cornersSequence[int]—Explicit corners (default: the selected UVs; needs one target mesh).

Project UVs

tb.ops.uv.project(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    kind: Literal["planar", "cube", "cylinder", "sphere", "normal", "bestPlane", "reset"],
    direction: Vec3Like = Z,
    up: Vec3Like = Y,
    cube_size: float = 2.0,
    fit: bool = True,
    clip: bool = False,
) -> Result

Project the selected faces: planar from a direction (the view), cube, cylinder, sphere, the average normal, the best-fit plane, or reset (each face fills the tile).

  • Operation uv.project
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
kindLiteral["planar", "cube", "cylinder", "sphere", "normal", "bestPlane", "reset"]requiredProjection shape. (planar / cube / cylinder / sphere / normal / bestPlane / reset).
directionVec3LikeZPlanar: projection direction (toward the viewer); cylinder/sphere: axis.
upVec3LikeYPlanar: screen up direction.
cube_sizefloat2.0Cube: edge length in scene units. (0.000001…1000000).
fitboolTrueScale to Bounds: fit the result into the 0–1 tile (keeping aspect).
clipboolFalseClip to Bounds: clamp UVs that fall outside the 0–1 tile onto its border.

Randomize Islands

tb.ops.uv.randomize(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    offset_u: float = 0.05,
    offset_v: float = 0.05,
    rotation: float = 0.0,
    scale_u: float = 0.0,
    scale_v: float = 0.0,
    scale_even: bool = True,
    seed: int = 0,
    all: bool = False,
) -> Result

Randomly move, rotate and scale UV islands (seeded: the same seed gives the same result).

  • Operation uv.randomize
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
offset_ufloat0.05Largest random move in U (each island moves up to ± this). (0…10).
offset_vfloat0.05Largest random move in V. (0…10).
rotationfloat0.0Largest random rotation in degrees (±). (0…180).
scale_ufloat0.0Largest relative scale change in U (0.1 = ±10 %). (0…0.99).
scale_vfloat0.0Largest relative scale change in V. (0…0.99).
scale_evenboolTrueUse the U scale for V too, keeping each island's proportions.
seedint0Random seed. (0…2147483646).
allboolFalseRandomize every island instead of only the selected ones.

Rectify

tb.ops.uv.rectify(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    selected_only: bool = True,
    spacing: Literal["lengthAverage", "length", "even"] = "lengthAverage",
) -> Result

Straighten all-quad islands into clean grids that keep their size.

  • Operation uv.rectify
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
selected_onlyboolTrueOnly the islands touched by the UV selection; off = every all-quad island.
spacingLiteral["lengthAverage", "length", "even"]"lengthAverage"Row and column sizes: Length Average keeps one true width per ring of quads, Length gives each quad its own true size, Even makes equal squares. (lengthAverage / length / even).

Relax

tb.ops.uv.relax(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    iterations: int = 10,
    factor: float = 0.5,
) -> Result

Smooth the selected UVs toward even spacing (pinned UVs stay).

  • Operation uv.relax
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
iterationsint10Smoothing passes. (1…100).
factorfloat0.5How far each pass moves a UV toward its neighbours' average. (0.01…1).

Rip

tb.ops.uv.rip(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Detach the selected UVs from unselected faces at the same place, so they move alone.

  • Operation uv.rip
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Seams from Islands

tb.ops.uv.seams_from_islands(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    clear_others: bool = True,
) -> Result

Mark the borders of every UV island as seams.

  • Operation uv.seams_from_islands
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
clear_othersboolTrueClear seams that are not island borders.

Seams from Sharp Edges

tb.ops.uv.seams_from_sharp(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    angle: float = 60.0,
    use_sharp_flag: bool = True,
) -> Result

Mark edges sharper than an angle (and edges flagged sharp) as seams.

  • Operation uv.seams_from_sharp
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
anglefloat60.0Dihedral angle in degrees above which an edge is a seam. (0…180).
use_sharp_flagboolTrueAlso mark edges flagged sharp.

Select UVs

tb.ops.uv.select(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    point: Any = ...,
    radius: float = 0.02,
    op: Literal["replace", "add", "remove", "toggle"] = "replace",
    box: Any = ...,
    lasso: Any = ...,
    corners: Sequence[int] = ...,
    edges: Sequence[int] = ...,
    faces: Sequence[int] = ...,
    elements: Any = ...,
) -> Result

Select UVs by a click (point + radius), a box, a lasso or explicit element indices.

  • Operation uv.select
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
pointAny—Pick position [u, v].
radiusfloat0.02Pick radius in UV units. (0…10).
opLiteral["replace", "add", "remove", "toggle"]"replace"How the targets combine with the current selection. (replace / add / remove / toggle).
boxAny—Box corners [u0, v0, u1, v1].
lassoAny—Lasso polygon: a list of [u, v].
cornersSequence[int]—Explicit corner (UV vertex) indices.
edgesSequence[int]—Explicit UV edges, by the corner each starts at.
facesSequence[int]—Explicit face indices.
elementsAny—Explicit elements per mesh as bitsets: {mesh id: base64 of little-endian u32 words, bit i = element i}; corners in Vertex / UV mode, edges (by start corner) in Edge mode, faces in Face / Island mode. A mesh left out selects none.

Select All UVs

tb.ops.uv.select_all(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    action: Literal["select", "deselect", "invert", "toggle"] = "toggle",
) -> Result

Select, deselect, invert or toggle every visible UV.

  • Operation uv.select_all
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
actionLiteral["select", "deselect", "invert", "toggle"]"toggle"toggle deselects when anything is selected, else selects everything. (select / deselect / invert / toggle).

Select Boundary

tb.ops.uv.select_boundary(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    extend: bool = False,
) -> Result

Select the border edges of UV islands.

  • Operation uv.select_boundary
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
extendboolFalseAdd to the current selection instead of replacing it.

Select Flipped

tb.ops.uv.select_flipped(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    extend: bool = False,
) -> Result

Select UV faces whose winding is reversed (mirrored in UV space).

  • Operation uv.select_flipped
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
extendboolFalseAdd to the current selection instead of replacing it.

Select Less

tb.ops.uv.select_less(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Shrink the UV selection by its border ring.

  • Operation uv.select_less
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Select Linked

tb.ops.uv.select_linked(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    point: Any = ...,
    radius: float = 0.02,
    extend: bool = False,
) -> Result

Select every UV island touching the selection, or the island under 'point'. In edge mode, a 'point' on a marked seam selects the seam edges around that island.

  • Operation uv.select_linked
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
pointAny—Pick position [u, v].
radiusfloat0.02Pick radius in UV units. (0…10).
extendboolFalseAdd to the current selection instead of replacing it.

Select Edge Loop

tb.ops.uv.select_loop(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    point: Any = ...,
    radius: float = 0.02,
    edge: int = ...,
    op: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result

Select the UV edge loop through the edge at 'point' (or the given edge).

  • Operation uv.select_loop
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
pointAny—Pick position [u, v].
radiusfloat0.02Pick radius in UV units. (0…10).
edgeint—Explicit start edge (the corner it starts at).
opLiteral["replace", "add", "remove", "toggle"]"replace"How the targets combine with the current selection. (replace / add / remove / toggle).

UV Select Mode

tb.ops.uv.select_mode(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"],
) -> Result

Switch the UV editor between vertex, UV (single corner), edge, face and island selection; the selection converts to the new mode.

  • Operation uv.select_mode
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]requiredThe new select mode. (vertex / uv / edge / face / island).

Select More

tb.ops.uv.select_more(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Grow the UV selection by one ring of connected faces.

  • Operation uv.select_more
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Select Overlap

tb.ops.uv.select_overlap(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    extend: bool = False,
) -> Result

Select UV faces that overlap other faces.

  • Operation uv.select_overlap
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
extendboolFalseAdd to the current selection instead of replacing it.

Select Pinned

tb.ops.uv.select_pinned(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    extend: bool = False,
) -> Result

Select pinned UVs.

  • Operation uv.select_pinned
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
extendboolFalseAdd to the current selection instead of replacing it.

Select Edge Ring

tb.ops.uv.select_ring(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    point: Any = ...,
    radius: float = 0.02,
    edge: int = ...,
    op: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result

Select the UV edge ring through the edge at 'point' (or the given edge).

  • Operation uv.select_ring
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
pointAny—Pick position [u, v].
radiusfloat0.02Pick radius in UV units. (0…10).
edgeint—Explicit start edge (the corner it starts at).
opLiteral["replace", "add", "remove", "toggle"]"replace"How the targets combine with the current selection. (replace / add / remove / toggle).

Select Seams

tb.ops.uv.select_seams(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    op: Literal["replace", "add", "remove", "toggle"] = "replace",
) -> Result

Select the UV edges marked as seams.

  • Operation uv.select_seams
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
opLiteral["replace", "add", "remove", "toggle"]"replace"How the targets combine with the current selection. (replace / add / remove / toggle).

Select Shortest Path

tb.ops.uv.select_shortest_path(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    topology: bool = False,
) -> Result

Select the shortest UV path between the first and last selected vertex, edge or face (never crossing a UV seam).

  • Operation uv.select_shortest_path
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
topologyboolFalseCount steps instead of UV length.

Select Similar

tb.ops.uv.select_similar(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    source: MeshRef = ...,
    source_placement: ObjectRef = ...,
    target_scope: Literal["selected", "active"] = "selected",
    type: Literal["auto", "area", "area3d", "perimeter", "sides", "material", "winding", "normal", "length", "length3d", "seam", "pinned", "faceCount", "object"] = "auto",
    compare: Literal["equal", "greater", "less"] = "equal",
    threshold: float = 0.1,
) -> Result

Select UV vertices, edges, faces or islands similar to the selected ones.

  • Operation uv.select_similar
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
sourceMeshRef—Optional source mesh resource. Source references are read only from this mesh; a Source object, if supplied, must place it.
source_placementObjectRef—The source mesh object. Omitted: the component-editing mesh, else the active mesh object. Other selected meshes never contribute reference values.
target_scopeLiteral["selected", "active"]"selected"Search Source and the selected mesh resources, or Source alone. An explicit meshes list is authoritative instead. Measures use authored local coordinates and Source's exact named UV map. (selected / active).
typeLiteral["auto", "area", "area3d", "perimeter", "sides", "material", "winding", "normal", "length", "length3d", "seam", "pinned", "faceCount", "object"]"auto"Automatic compares pins for UV vertices/corners, UV length for edges and area for faces/islands.
compareLiteral["equal", "greater", "less"]"equal"How values relate to the selected ones. (equal / greater / less).
thresholdfloat0.1Tolerance relative to each selected reference value; for normals, a fraction of 180°. Pinned, Seam, Sides, Material, Winding, Object and Island Face Count are exact and ignore this value. (0…1).

Select Split

tb.ops.uv.select_split(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Keep only the corners of entirely selected faces, so moving them tears those faces off.

  • Operation uv.select_split
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Assign Unwrap Part

tb.ops.uv.set_parts(
    *,
    meshes: Sequence[MeshRef] = ...,
    faces: Sequence[int] = ...,
    part: int,
) -> Result

Assign the selected faces to a manual part label. Zero returns faces to the unassigned region.

  • Operation uv.set_parts
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
facesSequence[int]—Stable face IDs. When absent, uses selected 3D faces, then selected UV faces.
partintrequiredPart (0…2147483647).

Set Seam Preference

tb.ops.uv.set_seam_preference(
    *,
    meshes: Sequence[MeshRef] = ...,
    faces: Sequence[int] = ...,
    uv_map: str = ...,
    points: Sequence[int] = ...,
    domain: Literal["point", "face"] = "point",
    scope: Literal["selection", "all"] = "selection",
    preference: Literal["allow", "avoid", "clear"],
    weight: float = 1.0,
) -> Result

Allow prefers seams here; Avoid discourages them. Point weights and exact face marks are independent. Clear removes both preferences in the chosen domain/scope; forced cuts stay protected.

  • Operation uv.set_seam_preference
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
facesSequence[int]—Stable face IDs. When absent, uses selected 3D faces, then selected UV faces.
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
pointsSequence[int]—Stable point IDs in Point domain; otherwise selected faces' points or selected 3D vertices.
domainLiteral["point", "face"]"point"Domain (point / face).
scopeLiteral["selection", "all"]"selection"All affects only the resolved target meshes, including marks outside the current view. (selection / all).
preferenceLiteral["allow", "avoid", "clear"]requiredPreference (allow / avoid / clear).
weightfloat1.0Zero clears the chosen preference; positive face weights mark whole source polygons. (0…1).

Smart UV Project

tb.ops.uv.smart_project(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    margin: float = 0.01,
    rotate: Literal["none", "cardinal", "any", "longSideU", "longSideV"] = "any",
    angle_limit: float = 66.0,
    area_weight: float = 0.0,
) -> Result

Split the selected faces into charts by normal angle, project each flat and pack them.

  • Operation uv.smart_project
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
marginfloat0.01Space between islands, as a share of the tile. (percent; 0…0.5).
rotateLiteral["none", "cardinal", "any", "longSideU", "longSideV"]"any"How islands may turn to pack tighter. Any angle first lines each island up with its smallest bounding box, so a long strip lies straight. Long Side U / V fixes that minimum box’s long side on the chosen axis, with no further packing turns. (none / cardinal / any / longSideU / longSideV).
angle_limitfloat66.0Faces within this angle (degrees) of a chart direction join that chart. (1…89).
area_weightfloat0.0Weight face area when choosing chart directions. (0…1).

Snap

tb.ops.uv.snap(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    target: Literal["selectedToPixels", "selectedToCursor", "selectedToCursorOffset", "selectedToAdjacent", "cursorToSelected", "cursorToOrigin", "cursorToPixels", "selectedToTile", "selectedToCursorTile"] = "selectedToPixels",
    texture_width: int = ...,
    texture_height: int = ...,
    udim_tile: int = 1001,
) -> Result

Snap the selected UVs to pixels, the 2D cursor or adjacent UVs, move islands into a UDIM tile, or move the 2D cursor.

  • Operation uv.snap
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
targetLiteral["selectedToPixels", "selectedToCursor", "selectedToCursorOffset", "selectedToAdjacent", "cursorToSelected", "cursorToOrigin", "cursorToPixels", "selectedToTile", "selectedToCursorTile"]"selectedToPixels"What snaps where. (selectedToPixels / selectedToCursor / selectedToCursorOffset / selectedToAdjacent / cursorToSelected / cursorToOrigin / cursorToPixels / selectedToTile / selectedToCursorTile).
texture_widthint—Pixel targets: texture width (default: the UV editor's texture size). (1…16384).
texture_heightint—Pixel targets: texture height (default: the UV editor's texture size). (1…16384).
udim_tileint1001Selection to UDIM Tile: the tile the selected islands move into. (1001…2000).

Split

tb.ops.uv.split(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    offset_u: float = 0.02,
    offset_v: float = 0.0,
) -> Result

Separate the selected faces from the rest of their island and offset them.

  • Operation uv.split
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
offset_ufloat0.02Offset in U.
offset_vfloat0.0Offset in V.

Split Unwrap Part

tb.ops.uv.split_part(
    *,
    meshes: Sequence[MeshRef] = ...,
    faces: Sequence[int] = ...,
) -> Result

The selected faces become a new manual part; other faces keep their labels.

  • Operation uv.split_part
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
facesSequence[int]—Stable face IDs. When absent, uses selected 3D faces, then selected UV faces.

Stack Similar

tb.ops.uv.stack_similar(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    selected_only: bool = False,
    tolerance: float = 0.001,
) -> Result

Stack islands of identical geometry on one shared layout.

  • Operation uv.stack_similar
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
selected_onlyboolFalseOnly stack among the islands touched by the UV selection.
tolerancefloat0.001How closely two islands must match in 3D, as a share of the island size. (0.000001…0.05).

Stitch

tb.ops.uv.stitch(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    snap_islands: bool = True,
) -> Result

Join the selected border UVs with their partners on other islands.

  • Operation uv.stitch
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
snap_islandsboolTrueMove the partner island rigidly onto the selection; otherwise both sides meet halfway.

Straighten

tb.ops.uv.straighten(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Straighten the selected UV edge path onto the line between its ends.

  • Operation uv.straighten
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).

Texel Density

tb.ops.uv.texel_density(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    action: Literal["get", "set", "match"] = "get",
    density: float = 512.0,
    texture_size: int = ...,
) -> Result

Measure, set or match texel density (texture pixels per scene unit) of the selected islands.

  • Operation uv.texel_density
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
actionLiteral["get", "set", "match"]"get"get reports the density; set scales islands to 'density'; match scales them to the first selected island's density. (get / set / match).
densityfloat512.0Target pixels per scene unit (set). (0.001…10000000).
texture_sizeint—Texture size in pixels (default: the UV editor's). (1…65536).

Tidy Seams

tb.ops.uv.tidy_seams(
    *,
    meshes: Sequence[MeshRef] = ...,
    straighten: bool = True,
    drop_spurs: bool = True,
    spur_length: float = 0.05,
) -> Result

Straighten marked seams along edge loops and hidden surface, and remove short dead-end seams.

  • Operation uv.tidy_seams
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
straightenboolTrueRe-route each seam between its junctions along edge loops and folds.
drop_spursboolTrueRemove short seams that end in the middle of the surface.
spur_lengthfloat0.05Longest dead-end seam removed, as a share of the square root of the surface area. (0.001…0.5).

Transform UVs

tb.ops.uv.transform(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    translate: Any = ...,
    rotate: float = ...,
    scale: Any = ...,
    pivot: Any = ...,
    drag: str = ...,
) -> Result

Move, rotate and scale the selected UVs. Rotation and scale use the editor's pivot unless 'pivot' gives a point.

  • Operation uv.transform
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
translateAny—Offset [du, dv] in UV units.
rotatefloat—Rotation in degrees (counter-clockwise).
scaleAny—Scale [su, sv] (or one number for uniform scale).
pivotAny—Explicit pivot [u, v]; default: the editor's pivot setting.
dragstr—Gesture id: calls with the same id within 300 ms are one undo step.

Unpin UVs

tb.ops.uv.unpin(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    corners: Sequence[int] = ...,
) -> Result

Unpin the selected UVs.

  • Operation uv.unpin
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
cornersSequence[int]—Explicit corners (default: the selected UVs; needs one target mesh).

Unwrap

tb.ops.uv.unwrap(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    strategy: Literal["auto", "optCuts", "unfold", "smartProject"] = "auto",
    distortion_bound: float = 4.1,
    hide_seams: float = 0.5,
    intent: Literal["fewerSeams", "balanced", "lessStretch"] = "balanced",
    model_type: Literal["auto", "organic", "hardSurface"] = "auto",
    minimum_piece_triangles: int = 24,
    part_count: int = 8,
    symmetry: bool = False,
    mirror_seams: bool = False,
    symmetry_axis: Literal["auto", "x", "y", "z"] = "auto",
    symmetry_offset: float = 0.0,
    seam_on_mirror_plane: bool = True,
    front_flip: bool = False,
    prune_spurs: bool = True,
    weld_small: bool = True,
    route_seams: bool = True,
    balance_seams: bool = True,
    use_texel_density: bool = False,
    texels_per_unit: float = 1024.0,
    texel_resolution: int = 1024,
    world_up: bool = False,
    world_up_axis: Literal["x", "y", "z"] = "z",
    stack_repeats: bool = False,
    fold_islands: bool = True,
    shape_packing: bool = True,
    repair: bool = True,
    keep_seams: bool = True,
    follow_parts_exactly: bool = True,
    mark_seams: bool = True,
    method: Literal["angleBased", "conformal", "minimumStretch"] = "angleBased",
    margin: float = 0.005,
    rotate: Literal["none", "cardinal", "any", "longSideU", "longSideV"] = "any",
    angle_limit: float = 66.0,
    pack: bool = True,
    scale: bool = True,
    tiles: int = 1,
    staged: str = "",
) -> Result

Unwrap the selected faces. Auto plans seams itself (hidden creases, symmetry, front/back); OptCuts grows and trims seams until each island meets a distortion limit with the shortest seams; Unfold flattens along the marked seams (angle based, conformal or minimum stretch). Pinned UVs stay put.

  • Operation uv.unwrap
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
strategyLiteral["auto", "optCuts", "unfold", "smartProject"]"auto"Auto plans seams and flattens; OptCuts optimizes seams and stretch together, starting from the marked seams; Unfold uses your seams; Smart Project groups faces by angle. (auto / optCuts / unfold / smartProject).
distortion_boundfloat4.1OptCuts: the mean symmetric Dirichlet stretch each island may reach. 4 is an undistorted layout; 4.1 is nearly undistorted; higher values accept more stretch for shorter seams. (4.01…10).
hide_seamsfloat0.5OptCuts: how strongly seams prefer creases, inner corners and occluded gaps (and painted Seam Allow weights) over open surface. 0 weighs every edge by its length alone. (0…0.9).
intentLiteral["fewerSeams", "balanced", "lessStretch"]"balanced"Auto: Fewer Seams keeps charts whole and accepts more stretch; Less Stretch cuts more seams for flatter charts. (fewerSeams / balanced / lessStretch).
model_typeLiteral["auto", "organic", "hardSurface"]"auto"Auto: Hard Surface cuts along panel creases; Organic only plans hidden seams. (auto / organic / hardSurface).
minimum_piece_trianglesint24Pieces at or above this triangle count use full automatic planning. Smaller pieces keep the same seam/pin constraints and use a cheaper nondegenerate flatten, never point collapse. (4…2000).
part_countint8Auto: requested number of geometry-driven Parts. Manual Parts override this count. (1…5000).
symmetryboolFalseAuto: use the selected mirror plane for symmetric Parts and the final UV layout.
mirror_seamsboolFalseCopy organic carve seams to the mirrored side. This adds cuts without enabling symmetric Parts or the final UV layout.
symmetry_axisLiteral["auto", "x", "y", "z"]"auto"Auto detects the plane; X/Y/Z selects an object-local axis. (auto / x / y / z).
symmetry_offsetfloat0.0Move the mirror plane in half-extents along its normal. (-1…1).
seam_on_mirror_planeboolTrueKeep a seam on existing edge loops lying on the mirror plane.
front_flipboolFalseReverse the inferred front and back seam preference.
prune_spursboolTrueClose short dead-end seams only when islands stay connected, pins stay fixed and the layout remains free of flips/overlaps within its stretch limits.
weld_smallboolTrueJoin small islands to a neighbor only within the existing size, area and quality bounds. Protected seams and Part boundaries stay separate; Min Piece Triangles is an independent solver-routing setting.
route_seamsboolTrueMove planned seams along loops, folds and less visible surface while keeping the quality constraints.
balance_seamsboolTrueApply small uniform scale corrections to reduce texture-size jumps across seams before packing. Pinned islands keep their exact scale and placement.
use_texel_densityboolFalseKeep nominal texture pixels per mesh-local unit instead of packing an atlas. Pinned islands are excluded; UVs may extend beyond the first tile.
texels_per_unitfloat1024.0Nominal pixels per authored mesh-local unit, before object placement transforms. Existing relative seam-density corrections remain. (0.001…10000000).
texel_resolutionint1024Pixels across one UV unit for this calibration. Independent of margin and the UV display image size. (64…8192).
world_upboolFalseTurn every island so one object axis points up the sheet, for textures with a direction (rain streaks, wood grain, brushed metal). Islands are then packed without turning, so the sheet fills a little less tightly. Pinned islands stay.
world_up_axisLiteral["x", "y", "z"]"z"The object-local axis that points up each island. (x / y / z).
stack_repeatsboolFalseLay islands of identical parts (bolts, track links, repeated panels) on one place so the texture spends its resolution once. Stacked copies share their texture and pack as one unit.
fold_islandsboolTrueJoin compatible hard-surface islands into larger unfolding nets, without crossing protected Part or forced-seam boundaries.
shape_packingboolTrueWhen packing, also try nesting island outlines and keep it only when it fills the tiles more tightly.
repairboolTrueAfter unwrapping, check every island for folds and overlaps, flatten folded islands again or split them in two, and keep a repair only when the layout gets better. The result line reports the check.
keep_seamsboolTrueAuto and OptCuts: keep the seams already marked as forced cuts. Off, OptCuts may also trim them.
follow_parts_exactlyboolTrueAuto: keep manual Part boundaries through seam cleanup and folding.
mark_seamsboolTrueAuto and OptCuts: mark the planned seams on the mesh.
methodLiteral["angleBased", "conformal", "minimumStretch"]"angleBased"Unfold (and Auto along marked seams): Angle Based (ABF++) keeps angles best; Conformal (LSCM) is faster; Minimum Stretch (SLIM) evens out area and angle stretch together. (angleBased / conformal / minimumStretch).
marginfloat0.005Space between islands, as a share of the tile. (percent; 0…0.1).
rotateLiteral["none", "cardinal", "any", "longSideU", "longSideV"]"any"How islands may turn to pack tighter. Any angle first lines each island up with its smallest bounding box, so a long strip lies straight. Long Side U / V fixes that minimum box’s long side on the chosen axis, with no further packing turns. (none / cardinal / any / longSideU / longSideV).
angle_limitfloat66.0Smart Project: faces within this angle (degrees) share a chart. (1…89).
packboolTruePack the islands into the tile.
scaleboolTrueScale islands together to fit the requested tiles.
tilesint1Number of horizontal UDIM tiles available to the packer. (1…100).
stagedstr""Token of a result computed by a background unwrap job (crate::uv_ops::unwrap_job::stage); applied instead of recomputing.

Unwrap Check

tb.ops.uv.unwrap_check(*, meshes: Sequence[MeshRef] = ...) -> Result

Report torn edges (shared by three or more faces), flipped neighbours and zero-area faces that would tear an unwrap.

  • Operation uv.unwrap_check
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).

UV Editor

tb.ops.uv.view(*, visible: bool = ...) -> Result

Show or hide the UV editor.

  • Operation uv.view
  • In Model
ArgumentTypeDefaultDescription
visiblebool—Show (true) or hide (false); omit to toggle.

Cycle Pivot

tb.ops.uv.view.cycle_pivot() -> Result

Switch the transform pivot: bounding box → 2D cursor → individual origins → median.

  • Operation uv.view.cycle_pivot
  • In Model

Frame UVs

tb.ops.uv.view.frame(*, all: bool = False) -> Result

Frame the selected UVs in the UV editor (or everything with all = true).

  • Operation uv.view.frame
  • In Model
ArgumentTypeDefaultDescription
allboolFalseFrame every UV instead of the selection.

Get UV View

tb.ops.uv.view.get() -> Result

Read the UV editor's view state.

  • Operation uv.view.get
  • In Model

UV Isolate

tb.ops.uv.view.isolate() -> Result

Show only the selected UV faces in the UV editor until Show All.

  • Operation uv.view.isolate
  • In Model

Set UV View

tb.ops.uv.view.set(
    *,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
    mesh: MeshRef = ...,
    map_index: int = ...,
    sticky: Literal["disabled", "sharedLocation", "sharedVertex"] = ...,
    sync: bool = ...,
    pivot: Literal["boundingBoxCenter", "median", "cursor", "individualOrigins"] = ...,
    snap: bool = ...,
    snap_target: Literal["pixel", "grid", "vertex", "tile"] = ...,
    grid_divisions: int = ...,
    texture_size: int = ...,
    stretch: Literal["off", "angle", "area"] = ...,
    show_overlap: bool = ...,
    background: Literal["grid", "checker", "colorGrid", "texture"] = ...,
    auto_isolate: bool = ...,
    focus_in3d: bool = ...,
    check: Literal["off", "checker", "islands", "islandChecker", "density", "seamMap", "stretch"] = ...,
    show_udim: bool = ...,
    udim_grid: Any = ...,
    cursor: Any = ...,
    proportional: bool = ...,
    proportional_falloff: Literal["smooth", "linear", "sharp", "root", "constant"] = ...,
    proportional_size: float = ...,
    live_unwrap: bool = ...,
    vertex_marker_scale: float = ...,
) -> Result

Change UV editor settings: select mode, sticky selection, sync selection, pivot, snapping, overlays and background.

  • Operation uv.view.set
  • In Model
ArgumentTypeDefaultDescription
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).
meshMeshRef—Mesh whose displayed UV map changes.
map_indexint—Displayed UV map ordinal; does not change the authored active/render map. (0…4294967295).
stickyLiteral["disabled", "sharedLocation", "sharedVertex"]—Which other corners a UV vertex pick brings along. (disabled / sharedLocation / sharedVertex).
syncbool—UV sync selection: pick mesh vertices/edges/faces from the UV editor.
pivotLiteral["boundingBoxCenter", "median", "cursor", "individualOrigins"]—Pivot for rotate and scale. (boundingBoxCenter / median / cursor / individualOrigins).
snapbool—Snap transforms.
snap_targetLiteral["pixel", "grid", "vertex", "tile"]—What transforms snap to (UDIM Tile moves by whole tiles). (pixel / grid / vertex / tile).
grid_divisionsint—Grid subdivisions per UV unit. (1…256).
texture_sizeint—Texture size in pixels (pixel snapping, texel density, checker). (16…16384).
stretchLiteral["off", "angle", "area"]—Color faces by UV distortion. (off / angle / area).
show_overlapbool—Highlight overlapping UV faces.
backgroundLiteral["grid", "checker", "colorGrid", "texture"]—Backdrop behind the UVs. (grid / checker / colorGrid / texture).
auto_isolatebool—Auto-isolate: show only faces selected in the 3D view (all faces when none are).
focus_in3dbool—While the UV editor is open, dim other mesh resources to 30% surface opacity in the Model viewport.
checkLiteral["off", "checker", "islands", "islandChecker", "density", "seamMap", "stretch"]—UV check shown in the UV editor and on the Model viewport surface (UV shading while on). (off / checker / islands / islandChecker / density / seamMap / stretch).
show_udimbool—Outline and number the UDIM tiles the UVs use beyond 1001.
udim_gridAny—UDIM tiles always outlined from 1001: [columns (1–10), rows (1–100)].
cursorAny—2D cursor position [u, v].
proportionalbool—Proportional editing: transforms also move nearby unselected UVs.
proportional_falloffLiteral["smooth", "linear", "sharp", "root", "constant"]—Proportional UV influence: Smooth, Linear, Sharp, Root (1-sqrt(distance)), or Constant within the radius. (smooth / linear / sharp / root / constant).
proportional_sizefloat—Proportional editing radius in UV units. (0.001…10).
live_unwrapbool—Live unwrap: moving pinned UVs re-solves their islands.
vertex_marker_scalefloat—Size of the UV point markers (1 = normal). (0.5…3).

Show All UVs

tb.ops.uv.view.show_all() -> Result

End UV Isolate: every face of the shown meshes appears again.

  • Operation uv.view.show_all
  • In Model

Weld

tb.ops.uv.weld(
    *,
    meshes: Sequence[MeshRef] = ...,
    uv_map: str = ...,
    mode: Literal["vertex", "uv", "edge", "face", "island"] = ...,
) -> Result

Merge the selected UVs to their center.

  • Operation uv.weld
  • In Model
ArgumentTypeDefaultDescription
meshesSequence[MeshRef]—Meshes to act on (default: the selected mesh objects).
uv_mapstr—UV map to edit (default: each mesh's displayed UV map, or its active map before a view choice).
modeLiteral["vertex", "uv", "edge", "face", "island"]—UV select mode (default: the UV editor's current mode). (vertex / uv / edge / face / island).