CLI reference › PixelLab utilities

layer

Builds a drawn paperdoll layer's sheet, keyed sheet and mask exactly as gen would send them, and writes them to .pixelkiln/layers/<style>/<layer>/preview/ without calling any provider: sheet.png, keyed.png, mask.png, overlay.png (the mask over the frames) and frames/, each frame's keyed input and mask. It prints each frame's neck row, the frames whose own narrowest row was overruled, and what the inpaint would cost at that sheet size. Free, offline, and outside the plan; the sources must be downloaded. A held item is refused, since it is placed rather than inpainted. A layer with an anchor shows the anchor's guide frames first, dressed and masked shut.

pixelkiln layer preview <layer> [--style <id>] [--gif]

Once the layer is made, --gif also draws it over every frame it dresses, the way pack --flatten does (the layer's trim applied), into dressed/: an animated GIF per loop at the loop's own rate, a strip per set of rotations. It prints how many base pixels the trim hid. A fringe of bare base beside the clothes, or a seam where two layers meet, is easier to judge moving than on a still sheet.

pixelkiln layer preview hero.shirt          # before gen: the mask and inputs
pixelkiln layer preview hero.shirt --gif    # after: the layer over its loops, moving

See Previewing before paying and Composing layers in a game.