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.

FieldDefaultDoes
ofrequiredOne asset id or a list, in the same style: a base, its states, its loops. Their frames share one sheet in this order.
regionbodybody: the figure's own pixels below the neck. head: the cell from its top to the neck. around: everything below the neck.
padding0 for body, 8 otherwiseEmpty pixels around every figure, 0 to 64. Layer frames grow by this on every side.
maskcomputedA black-and-white PNG the size of the sheet.
keyedcomputedA PNG the size of the sheet, sent instead of the keyed sheet.
skinall but outlineThe colours that are skin, for a character that is not bare.
key#00ffffThe stand-in colour. Change it for an item that is itself cyan.
cleantrueClean loop frames against the stills among of before sheeting them.
offsetnone[x, y] pixels to move every frame by, or { "<of asset>": [x, y], "*": [x, y] }. Free to change on a drawn layer.
columnsfittedSheet 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 fieldDefaultDoes
itemrequiredManifest-relative PNG. {direction} in the path names one file per direction the frames face.
anchorsrequiredManifest-relative anchors file, written by pixelkiln anchors <asset>.
jointright-handright-hand or left-hand.
griplowest fifth"center", or [x, y] in the item's own pixels, or one per direction.
scale1Resize the item before placing it, 0.1 to 4, nearest-neighbour.
tilt0Degrees to lean an upright item the way the figure faces.
lean0Degrees to tip an upright item outward from the body.
depthautoauto follows each frame's skeleton; front or behind for every frame.
graspofftrue, 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.