# Reshape and merge

In 2.0 a palette is never fixed. Add, resize, move, merge and sort strips after your models use
them, and every model keeps its colours.

## Keep UVs

Whenever strips move (adding or deleting a strip, changing a size or the grid, moving or scaling a
block, resizing the texture), the UVs of every model using the palette move with them, face by
face. That's **Keep UVs**, on by default in the **Layout** tab.

- Only faces whose material uses the palette are touched, through the UV map that really feeds
  it. Node groups, Reroutes and UV Map nodes are followed, so a second UV map, such as a
  lightmap, is never moved.
- It works in Object Mode, Edit Mode and Texture Paint, and **one Ctrl+Z** puts the layout and
  the models back together.
- **What it can't keep**: materials whose UVs go through nodes that change them (a Mapping node,
  for example) and meshes linked from another file are left as they are, and named in the status
  bar. Deleting a strip that faces still use warns you first, with the number of faces.
- Where strip blocks overlap, faces stay with the block that was there first, so dragging a new
  block across your strips leaves your models alone.

Turn Keep UVs off only when you want the UVs to stay where they are while the strips move.

![Keep UVs off: the palette changes, the models sample the wrong colours](https://savedpixel.com/v3/whatsnew/keepuv-off.mp4#16:10 "Keep UVs off: the strips move, the UVs stay behind.")

![Keep UVs on: the palette changes, the models keep their colours](https://savedpixel.com/v3/whatsnew/keepuv-on.mp4#16:10 "Keep UVs on: the UVs slide with their strips.")

## Add, delete, reorder and size strips

- **Add Strip** in the Strips tab adds a strip; the grid grows by itself when it needs room.
- Duplicate, move, size or delete a strip from its right-click menu, or with the strip list's
  keys (**Ctrl+D**, **Alt+Up** / **Alt+Down**, **Delete**).
- **Strip sizes in cells**: give a strip a size such as 2 × 1 for a wide strip or 1 × 3 for a
  tall one, in its card's Layout section or its right-click menu. The other strips flow around it.

Every layout change is one Ctrl+Z step, models included.

![Adding and reordering strips](https://savedpixel.com/v3/whatsnew/blocks.mp4#16:10 "Add, delete, move or resize strips at any time.")

## Strip Transformer

A tool in the Image Editor's toolbar for sizing strips freely, not just in whole cells.

- **Drag any border between strips**, no selecting first: hover it, it lights up, drag it. Like
  Blender's own area borders, a border moves as a whole line. Hold **Alt** to move only the border
  next to the pointer; drag a corner to move two lines.
- **Double-click a border** to share the space evenly between both sides.
- **Snapping**: edges snap to the grid, to other strips and to where both sides are the same
  size. Hold **Ctrl** to drag freely. A readout shows both sides' sizes while you drag.
- **Resize several strips together**: click, Shift-click, or drag a box from empty space to select
  strips (**A**, **Alt+A** and **Ctrl+I** select all, none or the rest). The selection gets a
  transform box with eight handles: **Shift** keeps the proportions on a corner, **Alt** resizes
  from the centre. Deselect with **Alt+A** to drag borders again.
- **Reset to Grid** (tool header or Layout tab) puts a block back on its grid.

Once a block has been resized freely, a new strip uses free space (or splits the selected strip),
and deleting a strip leaves a gap you can fill by dragging a neighbour.

![Dragging the border between strips](https://savedpixel.com/v3/whatsnew/resize.mp4#16:10 "Drag any border between strips; the models keep their colours.")

## Strip blocks

A strip block is a grid of strips. One texture can hold several, like several palettes in one
image.

- **New Strip Block** (Layers tab, **Add layer** menu) adds another block. It goes into free space
  if there is some, otherwise on top in the middle, selected. Nothing already on the palette
  changes.
- **Duplicate** a block from its right-click menu; the copy is placed the same way.
- **Move and scale** a block with the **Palette Transformer** or its X, Y, W and H fields, like
  any layer (see *Layers and pictures*). Blocks stay upright, so every strip stays a clean
  rectangle.
- A picker next to Strips chooses which block you are editing.

![New Strip Block: a second grid of strips in the palette's free space](https://savedpixel.com/v3/docs/reshape/strip-blocks.mp4#16:10 "Layers, Add, New Strip Block: a new block lands in free space; the Strips tab picks which block you edit.")

## Extend Palette

**Extend Palette** adds empty space to the texture, for pictures or more strip blocks. Choose
where the space goes and how many pixels (0 doubles that side, so a power-of-two size stays one).
Everything keeps its pixels and models keep their colours.

![Extending the palette](https://savedpixel.com/v3/whatsnew/extend.mp4#16:10 "Add room below or to the right.")

## Merge Palette Into This One

Bring another palette into this one as a strip block, with its colourways. Models that used it
switch to this texture and keep their colours. The merged palette is deleted afterwards, with
**Undo** for a few seconds, unless you untick that.

![Merging another palette in as a block](https://savedpixel.com/v3/whatsnew/merge.mp4#16:10 "Its models switch to this texture and keep their colours.")

## Sort Strips

**Sort Strips** orders a palette's strips **By Hue** (rainbow order, greys last), **Light to
Dark**, **Dark to Light** or **By Saturation**, or reverses the current order. Each block is
sorted within itself, and models keep their colours.

![Sort Strips on a random palette: By Hue, then Light to Dark](https://savedpixel.com/v3/docs/reshape/sort-strips.mp4#16:10 "Right-click the palette, Sort Strips: By Hue makes a rainbow, Light to Dark a ramp.")

## Palette size

Set the palette's width and height in the **Layout** tab, separately, for any texture shape. This
is the only thing that changes the palette's size; adding blocks or pictures never does.

Source: https://savedpixel.com/docs/v2/reshape
