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.
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.
Reset Unwrap Parts
tb.ops.uv.clear_parts(*, meshes: Sequence[MeshRef] = ...) -> Result
Remove manual part labels; automatic unwrap plans parts again.
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.
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).
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.
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, …).
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.
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).
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).
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.
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.
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.
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.
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.
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.
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).
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.
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).
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).
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.
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).
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.
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.
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.
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.
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.
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.
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).
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.
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.
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).
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.
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.
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.
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.
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).
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.
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).
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
UV Editor
tb.ops.uv.view(*, visible: bool = ...) -> Result
Show or hide the UV editor.
Cycle Pivot
tb.ops.uv.view.cycle_pivot() -> Result
Switch the transform pivot: bounding box → 2D cursor → individual origins → median.
Frame UVs
tb.ops.uv.view.frame(*, all: bool = False) -> Result
Frame the selected UVs in the UV editor (or everything with all = true).
Get UV View
tb.ops.uv.view.get() -> Result
Read the UV editor's view state.
UV Isolate
tb.ops.uv.view.isolate() -> Result
Show only the selected UV faces in the UV editor until Show All.
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.
Show All UVs
tb.ops.uv.view.show_all() -> Result
End UV Isolate: every face of the shown meshes appears again.
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.