Paperdoll layers
Field reference
A layer asset needs a prompt and a layer object. It takes no
reference or concept, and belongs in a character style.
| Field | Default | Does |
|---|---|---|
of | required | One asset id or a list, in the same style: a base, its states, its loops. Their frames share one sheet in this order. |
region | body | body: the figure's own pixels below the neck. head: the cell from its top to the neck. around: everything below the neck. |
padding | 0 for body, 8 otherwise | Empty pixels around every figure, 0 to 64. Layer frames grow by this on every side. |
mask | computed | A black-and-white PNG the size of the sheet. |
keyed | computed | A PNG the size of the sheet, sent instead of the keyed sheet. |
skin | all but outline | The colours that are skin, for a character that is not bare. |
key | #00ffff | The stand-in colour. Change it for an item that is itself cyan. |
clean | true | Clean loop frames against the stills among of before sheeting them. |
offset | none | [x, y] pixels to move every frame by, or { "<of asset>": [x, y], "*": [x, y] }. Free to change on a drawn layer. |
columns | fitted | Sheet columns. |
Plan states: blocked until every source is downloaded and current, stale
when a source is regenerated or re-processed, or when the prompt or any
field above changes.
A layer with attach is a placed item. It needs no prompt, costs nothing,
and takes only of and padding (default 12) from the table above.
attach field | Default | Does |
|---|---|---|
item | required | Manifest-relative PNG. {direction} in the path names one file per direction the frames face. |
anchors | required | Manifest-relative anchors file, written by pixelkiln anchors <asset>. |
joint | right-hand | right-hand or left-hand. |
grip | lowest fifth | "center", or [x, y] in the item's own pixels, or one per direction. |
scale | 1 | Resize the item before placing it, 0.1 to 4, nearest-neighbour. |
tilt | 0 | Degrees to lean an upright item the way the figure faces. |
lean | 0 | Degrees to tip an upright item outward from the body. |
depth | auto | auto follows each frame's skeleton; front or behind for every frame. |
grasp | off | true, or { "radius": n }: redraw the hand around the item with one inpaint over a disc at each hand. Makes the layer a paid one. |
It is blocked until the item files and the anchors file exist, and stale
when any of them, a source frame, or a field above changes. Placing it again
is free.
On a loop, animation.clean (default off) cleans its frames at download.
