Sub topic 3
Working in the UV Editor
This chapter assumes you can move around the 3D viewport, switch between Object Mode and Edit Mode, and select vertices, edges, and faces. It also assumes you know what a material is. The previous chapters introduced UV coordinates and the Image Texture node. Here you learn the tool where you look at and edit those coordinates.
What the UV Editor shows
The UV Editor is a 2D view of the active UV map of the mesh you are editing. Each face corner of the mesh stores one U,V pair, and the editor draws those pairs as points, edges, and faces on a flat grid. The mesh itself is not drawn. You see its flattened layout.
The main areas of the editor are:
- The 0 to 1 square. U runs left to right and V runs bottom to top. The square from (0, 0) to (1, 1) covers exactly one image, whatever its pixel size. A 2048 × 1024 image fills the square too. The square is shown wider on screen so the image is not distorted, but UV space is still 0 to 1 on both axes.
- The background image. This is an image you open in the editor header. It is a visual aid for editing and does not change the material. Your material still uses whatever image its Image Texture node holds.
- The UV mesh. Faces, edges, and vertices are drawn in the UV space, usually over the square.
- The header and sidebar. The header holds the selection mode buttons, the sync toggle, the pivot and snapping controls, and the Overlays menu. The sidebar (press
N) has an Image tab with a UV Vertex panel that shows the position of the selected UVs.
UVs outside the square are valid. The texture repeats or clamps there, depending on the Extension setting covered later in the course. Blender also uses tiles beyond the first square for UDIM textures, where tile 1001 is 0 to 1 in U and tile 1002 is 1 to 2. You do not need UDIMs for a first unwrap.
Opening the editor
The quickest way is the UV Editing workspace tab at the top of the window. It gives you two panes. The left pane is a 3D viewport that opens in Edit Mode. The right pane is the UV Editor.
You can also change any area to a UV Editor with the editor-type menu in its top-left corner. In that case, put the mesh in Edit Mode yourself. In Object Mode the UV Editor displays nothing, because it only shows geometry that is being edited.
The relationship between the viewport and the editor
This is the part that confuses most people. There are two selection systems, and the UV Sync Selection toggle in the editor header controls how they relate. The toggle is the button with two arrows.
Sync off (the default)
With sync off, the UV Editor shows only the faces you have selected in the 3D viewport. Within that set, the UV selection is separate from the mesh selection. Selecting UVs in the editor does not select anything on the 3D mesh, and the reverse also holds.
This is useful. You can select a group of faces in the viewport, such as the side of a crate, and then work on just those faces in the editor without the rest getting in the way. It also explains the most common beginner problem: nothing selected in the viewport means nothing visible in the editor.
Sync on
With sync on, the UV Editor shows every face of the mesh, including hidden-from-selection ones. Selecting in either place selects the same elements. Selection in the editor then follows the mesh selection mode (vertex, edge, or face) and the sticky-selection options are not used.
Sync is convenient for finishing touches, because you can click a UV face and see it highlighted on the model. The cost is clutter, since overlapping islands all show at once. Many artists keep it off while editing a single island and turn it on to check a problem area.
| Behavior | Sync off | Sync on |
|---|---|---|
| Faces shown in the editor | Only faces selected in the viewport | All visible faces |
| Selection shared with the 3D mesh | No | Yes |
| Selection modes available | Vertex, Edge, Face, Island | Vertex, Edge, Face |
| Sticky selection options | Available | Not applicable |
Selection modes in the editor
With sync off, the header offers four modes. The number keys 1, 2, 3, and 4 switch between them while the pointer is over the editor.
- Vertex (
1): select individual UV points. - Edge (
2): select the edge between two UV points. - Face (
3): select a whole UV face. - Island (
4): select a whole connected group of UV faces with one click.
An island is a set of UV faces connected to each other in UV space. Seams, which later chapters cover, are what split a mesh into several islands. Island mode and the shortcuts L (select the linked island under the cursor) and Ctrl+L (extend the selection to linked UVs) let you move whole islands without grabbing a single stray point.
With sync off, the Sticky Selection Mode menu decides what happens to UV points that share one mesh vertex:
- Shared Location (the default) selects every UV point at the same position, so a point on an island's border moves together with its neighbor. This is why dragging a vertex does not tear holes inside an island.
- Shared Vertex selects every UV point that belongs to the same mesh vertex, even if they sit at different places. Use it to find the matching point on the other side of a seam.
- Disabled selects only the UV point you click. Use it when you need to move one corner of a face alone.
The first code example in the course showed that UVs belong to face corners, not vertices. This is why sticky selection exists. One mesh vertex can have several UV points, and the sticky option controls how those points are grouped when you click.
Moving, rotating, and scaling UVs
The transform tools work as in the 3D viewport:
Gmoves the selection. PressXorYright afterGto lock to one axis, since the editor is 2D.Rrotates the selection around the pivot.Sscales it.Shift+Zis not needed here.Sfollowed byXscales only along U.
The pivot point menu in the header decides what you rotate or scale around: Bounding Box Center, Median Point, 2D Cursor, or Individual Origins. For island work, Individual Origins scales each selected island around its own center, which keeps several islands from drifting apart. The 2D Cursor is the red and white circle you can place with a click while the Cursor tool is active, and is useful when you want to scale around a fixed point such as a corner of the image.
Snapping works the same way as in 3D. Turn on the magnet in the header to snap to pixels or to increments, which keeps island edges aligned with the image grid.
Two other operations are worth learning now:
- Pin (
P) fixes the selected UV points so a later unwrap does not move them.Alt+Punpins. Pinning is how you keep an island's orientation while you re-unwrap it. - Rip (
V) tears the selected UV edges or points apart, creating a cut in UV space without a mesh seam. Use it with care, because it can break an island into pieces that no longer match the mesh's cuts.
Reading the display: overlays
The Overlays menu controls what is drawn on top of the UV mesh. The options you need now are:
- Stretch, which colors faces by how much they are distorted. Blue means little distortion, and the color moves toward red as the face is more stretched. You can pick Angle or Area as the measure. Chapter on testing for distortion covers how to read it.
- Modified Edges and Faces, which control extra outlines.
- Display Stretch versus the regular fill. Stretch display replaces the plain face fill.
For this chapter, turn Stretch on and watch the colors while you move points. A good unwrap stays mostly blue.
A scripting view of the editor
You can read UV data from Python without opening the editor at all. This script, which runs in Object Mode, lists the UV maps on the active object and reports how far the UVs extend:
import bpy
obj = bpy.context.active_object
mesh = obj.data
print("UV maps:", [uv.name for uv in mesh.uv_layers])
active = mesh.uv_layers.active
if active is None:
print("This mesh has no UV map.")
else:
us = [item.uv.x for item in active.data]
vs = [item.uv.y for item in active.data]
print("Active map:", active.name)
print("U range:", min(us), max(us))
print("V range:", min(vs), max(vs))If the U and V ranges lie inside 0 to 1, all of the layout fits in the first image tile. If they go beyond, part of the layout falls outside the square.
The header settings are also available as scene properties. This script turns sync on and picks a UV selection mode:
import bpy
tool_settings = bpy.context.scene.tool_settings
tool_settings.use_uv_select_sync = False
tool_settings.uv_select_mode = 'ISLAND'
print("Sync:", tool_settings.use_uv_select_sync)
print("Mode:", tool_settings.uv_select_mode)The script sets sync to off, despite the name of the toggle, and switches the mode to island. Change False to True to turn sync on. With sync on, the mode 'ISLAND' is not available, so Blender will use a mesh-style mode instead.
Common problems
- The editor is empty. Follow the flowchart above. The usual causes are Object Mode, no faces selected with sync off, or no UV map.
- You moved a UV but the 3D mesh did not change. That is expected. UV edits change which part of the image each face shows, not the geometry.
- The background image changed but the model did not. The image in the editor header is only a reference. Change the image in the Image Texture node to change the material.
- A face shows as a thin line or a point. Its UVs have collapsed, often from scaling to zero. Select it and unwrap again.
- Moving one point drags a neighbor. Sticky selection is joining points that share a location. Switch it to Disabled for single-point work.
- There are two UV maps and you edit the wrong one. The active map for editing is the one highlighted in Object Data properties under UV Maps. The camera icon next to a map marks the one used for rendering, and it is a separate setting.
Summary of the working model
The UV Editor is a 2D window onto the active UV map. Sync off gives you separate selections and a focused view of selected faces. Sync on gives you the full mesh and shared selection. Island mode and the sticky selection options control how groups of points move together. The stretch overlay lets you see problems while you edit.
Exercise
You are in the UV Editing workspace, the mesh is in Edit Mode, sync is off, and the UV Editor shows nothing even though the object has a UV map. What is the most likely cause, and what are two ways to fix it?
Show answer
No faces are selected in the 3D viewport, and with sync off the UV Editor only shows selected faces. Fix it by selecting faces in the viewport (for example with A), or by turning on UV Sync Selection so every visible face is shown.
Exercise
A mesh vertex on a seam has two UV points at different positions. You want to select both of them by clicking one. Which sticky selection mode do you use, and why does Shared Location not work here?
Show answer
Use Shared Vertex. Shared Location selects only the points at the same position as the one you click, and the two points on either side of a seam sit at different positions, so the second point is not selected. Shared Vertex selects every UV point that belongs to the same mesh vertex.