pixelkiln 0.147.0 → 0.148.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +308 -104
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +210 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +286 -194
- package/dist/index.d.ts +286 -194
- package/dist/index.js +217 -60
- package/dist/index.js.map +1 -1
- package/docs/CHARACTERS.md +68 -3
- package/docs/CLI.md +16 -1
- package/docs/ENDPOINTS.md +14 -3
- package/docs/GENERATORS.md +1 -1
- package/docs/MANIFEST.md +2 -2
- package/docs/PAPERDOLL.md +24 -1
- package/package.json +1 -1
- package/schema/manifest.schema.json +7 -1
- package/skills/pixelkiln/references/pixellab.md +18 -4
package/docs/CHARACTERS.md
CHANGED
|
@@ -327,6 +327,61 @@ at submit time, like a base's `reference`.
|
|
|
327
327
|
}
|
|
328
328
|
```
|
|
329
329
|
|
|
330
|
+
### PixMiniMax loops
|
|
331
|
+
|
|
332
|
+
`mode: "pixminimax"` draws the loop from the prompt on PixelLab's PixMiniMax
|
|
333
|
+
engine (beta, every plan), through `/animate-character` like a v3 loop. It
|
|
334
|
+
takes a multiple of 4 `frames` from 4 to 40 (default 8) at any size up to
|
|
335
|
+
256px, and the same `startFrame`, `endFrame`, `keepFirstFrame` and
|
|
336
|
+
`enhancePrompt` as v3. Two captions describe the start frame: `subject`
|
|
337
|
+
(sent as `subject_description`, one noun phrase up to 300 characters) and
|
|
338
|
+
`initialPose` (pixminimax only, up to 300 characters). PixelLab reads
|
|
339
|
+
either off the image when it is left out, and can decline a job it cannot
|
|
340
|
+
caption; fill them in if that happens. Template style hints, `template`
|
|
341
|
+
and `motionFrom` are refused, and so is the mode on an `objectPro`.
|
|
342
|
+
|
|
343
|
+
It is the engine for a character moving around a prop. PixelLab cannot
|
|
344
|
+
hold a prop in a loop, so the prop is drawn into `startFrame`, and
|
|
345
|
+
`endFrame` pins the loop back to it. Measured on a 256px side-view
|
|
346
|
+
character beside a full-height pole: a v3 loop (8 generations) bent the
|
|
347
|
+
pole into a stick she carried; a hand-posed `skeleton-v3` loop clamped her
|
|
348
|
+
feet and cropped her head; PixMiniMax at 16 frames with the same start and
|
|
349
|
+
end frame turned her a full 360° around a straight pole and looped cleanly,
|
|
350
|
+
for 2 generations.
|
|
351
|
+
|
|
352
|
+
```json
|
|
353
|
+
"mira.pole_spin": {
|
|
354
|
+
"prompt": "grabs the vertical pole beside her and swings all the way around it",
|
|
355
|
+
"animation": {
|
|
356
|
+
"of": "mira", "direction": "south", "mode": "pixminimax", "frames": 16,
|
|
357
|
+
"startFrame": "poses/mira-at-pole.png", "endFrame": "poses/mira-at-pole.png",
|
|
358
|
+
"subject": "a young woman in a hoodie", "initialPose": "standing beside the pole, one hand on it"
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
**Cost** follows PixelLab's published table. The model works on an
|
|
364
|
+
upscaled canvas (the longer side ×4 up to 64px, ×2 up to 128px, ×1 above),
|
|
365
|
+
so 64, 128 and 256px price the same, and there 4–8 frames cost 1, 12–16
|
|
366
|
+
cost 2, 20–24 cost 3, 28 costs 4, 32–36 cost 5 and 40 costs 6, the
|
|
367
|
+
ceiling. Just past a step is cheaper: 132px stays at 1 up to 28 frames.
|
|
368
|
+
`plan` prices the dearer of the base's size and the start frame's. The
|
|
369
|
+
`animate-pixminimax` revision uses the same table. The 256px, 16-frame
|
|
370
|
+
figure is a bill taken through PixelLab's MCP; PixelKiln itself has not yet
|
|
371
|
+
sent this request, so treat the plan as unmeasured
|
|
372
|
+
([validation ledger](./ENDPOINTS.md#validation-ledger)). `keepFirstFrame`
|
|
373
|
+
works as on v3: 16 frames land as 17 files.
|
|
374
|
+
|
|
375
|
+
**Adopting one.** PixelLab's character record does not say which engine
|
|
376
|
+
drew a loop (a PixMiniMax loop and a v3 loop both read
|
|
377
|
+
`custom-<the action's first words>`), so `adopt` takes the engine from the
|
|
378
|
+
manifest. Declare a loop made elsewhere with PixMiniMax as
|
|
379
|
+
`"mode": "pixminimax"` and its `remoteId` (`<character>#<group>`); the lock
|
|
380
|
+
records `mode: "pixminimax"` with `modeFrom: "manifest"`, and the entry
|
|
381
|
+
carries the pixminimax spec's identity, so a later `gen` does not redraw it
|
|
382
|
+
with v3. `adopt` reports a template loop declared as a text loop, or the
|
|
383
|
+
reverse, the one mix-up the record shows.
|
|
384
|
+
|
|
330
385
|
### Cleaning a loop's frames
|
|
331
386
|
|
|
332
387
|
An animation model leaves ghost pixels around a moving figure: pale arcs
|
|
@@ -357,9 +412,19 @@ layer) stale, so turn it on before generating those.
|
|
|
357
412
|
|
|
358
413
|
Cleaning goes by colour, so look at the limbs afterwards. A model sometimes
|
|
359
414
|
shades a far arm or leg in a dark colour the rotations never use. A whole
|
|
360
|
-
limb drawn that way
|
|
361
|
-
|
|
362
|
-
thin an arm. Regenerate a loop
|
|
415
|
+
limb drawn that way is recognised by its size and left alone, sealed in its
|
|
416
|
+
own outline or reaching the edge of the silhouette; an edge of such colour on
|
|
417
|
+
the body itself is still peeled, which can thin an arm. Regenerate a loop
|
|
418
|
+
that comes back like that.
|
|
419
|
+
|
|
420
|
+
Dark clothing is the figure's own. Shades below the outline threshold in the
|
|
421
|
+
rotations vouch for a loop's slightly lighter shade of them, and the sweep
|
|
422
|
+
that removes outline left framing nothing never takes a connected stretch of
|
|
423
|
+
dark bigger than a ghost. Until this fix a base in black underwear could lose
|
|
424
|
+
thousands of pixels from a frame that way. Loops cleaned before can come out
|
|
425
|
+
with different bytes on their next `pixelkiln fetch`; no spec hash changes.
|
|
426
|
+
`fetch` warns when cleaning takes more than 3% of a frame's opaque pixels;
|
|
427
|
+
`"clean": false` and `pixelkiln fetch` restore the provider's bytes for free.
|
|
363
428
|
|
|
364
429
|
### How the family depends on the base
|
|
365
430
|
|
package/docs/CLI.md
CHANGED
|
@@ -366,8 +366,15 @@ on the account that no entry claims are listed at the end with their ids, so
|
|
|
366
366
|
bringing one in is a matter of declaring the asset with that `remoteId` and
|
|
367
367
|
running `adopt` again.
|
|
368
368
|
|
|
369
|
+
`--dry-run` still contacts the provider and matches, then reports what it
|
|
370
|
+
would adopt and every character file it would write, without writing to the
|
|
371
|
+
style's `outDir`, the lockfile, or the manifest; `--tag` and `--write-prompts`
|
|
372
|
+
are skipped. Add `--json` for the same report on stdout (progress goes to
|
|
373
|
+
stderr).
|
|
374
|
+
|
|
369
375
|
```bash
|
|
370
376
|
pixelkiln adopt --style cast
|
|
377
|
+
pixelkiln adopt --style cast --dry-run --json
|
|
371
378
|
```
|
|
372
379
|
|
|
373
380
|
`adopt --local` is the keyless path for art made somewhere else (the PixelLab
|
|
@@ -380,6 +387,14 @@ one asset. Entries already in the lockfile are skipped unless `--force`;
|
|
|
380
387
|
`--dry-run` and `--json` show what would be written. Characters and effects
|
|
381
388
|
are not imported this way.
|
|
382
389
|
|
|
390
|
+
A frame set (an `animate` or `animate-pixminimax` revision, or any asset whose
|
|
391
|
+
output is `<asset>-frame-00.png` onward) is imported from its frames: each is
|
|
392
|
+
hashed in order into one entry with a `frame-NN` output per frame, the way
|
|
393
|
+
`fetch` records a generated clip. The revision's `frames` count sets the
|
|
394
|
+
minimum (a clip that keeps the resting pose as frame 0 has one more file). If a
|
|
395
|
+
frame is missing, or the run has a gap, the asset is skipped and the message
|
|
396
|
+
names each missing frame file.
|
|
397
|
+
|
|
383
398
|
Art made through the PixelLab MCP is usually rolled interactively and then
|
|
384
399
|
post-processed. Record that with `--tool` (the call that made it), `--prompt`
|
|
385
400
|
(the prompt it was rolled with, kept as the entry's prompt), `--seed`, `--cost`
|
|
@@ -2191,7 +2206,7 @@ Print the package version. `-v` is an alias.
|
|
|
2191
2206
|
| `--only id1,id2` | most workflows | Restrict asset ids; repeatable. An `animation.directions` shorthand id selects every loop and mirror it expands into. |
|
|
2192
2207
|
| `--budget <n\|provider=n>` | submit/gen/gallery/model normal-map | Refuse work above this cost. Repeat `provider=n` for every provider in a mixed run; do not mix keyed and unkeyed forms. For `gallery`, the session ceiling that enables generation from the page, and (from `pixellab=<n>` or the plain amount) the ceiling on a session's normal map detail for models. |
|
|
2193
2208
|
| `--force` | gen/fetch/derived commands/recipe install/quality snapshot | Regenerate current work, replace a changed or untracked fetch destination, rebuild current quality-profile output, take ownership of modified/unowned derived output, replace changed recipe files, or replace a changed quality baseline. A refinement rebuild resets approval. |
|
|
2194
|
-
| `--dry-run` | supported mutating commands, adopt --local, quality snapshot --only | Inspect without spending or mutating provider state. |
|
|
2209
|
+
| `--dry-run` | supported mutating commands, adopt, adopt --local, quality snapshot --only | Inspect without spending or mutating provider state. |
|
|
2195
2210
|
| `--json` | plan/doctor/audit/cache/status/gallery/salvage/refine/recipe/quality/unzoom/pixelate/normal-map/vfx/font | Machine-readable stdout where supported. For `gallery`, prints the snapshot instead of serving it. |
|
|
2196
2211
|
| `--check` | plan/audit/cache | Exit nonzero when selected state is unsafe. |
|
|
2197
2212
|
| `--strict` | plan/hash/doctor | Fail on any invalid manifest entry instead of listing it and continuing. |
|
package/docs/ENDPOINTS.md
CHANGED
|
@@ -146,13 +146,14 @@ not probed.
|
|
|
146
146
|
| `POST /create-character-state` | `character` state | Measured live | A state of a 64px pro base billed exactly 10, now planned at the same longest-side tier ([Remaining routes, measured](#remaining-routes-measured-november-2026)). | States of other engines' bases since the October cut. | Medium |
|
|
147
147
|
| `POST /animate-character`, `mode` template or v3 | `character` loops without skeleton-v3 | Measured live | Two template walk loops on a 64px v3 base cost 1 each by the balance, but each job's `usage` came back in **USD** (0.012 and 0.009), so `billed` records dollars ([Remaining routes, measured](#remaining-routes-measured-november-2026)). A v3 text loop on a 96px pro-flash base came back 108×108 ([Characters, measured](#characters-measured)). | A v3 loop's bill. | Low |
|
|
148
148
|
| `POST /animate-character`, `mode: pro` | `character` loops, `mode: pro` | Measured live | A 64px loop cost 10 and returned 16 frames; the job recorded no `billed` amount, and the balance moved exactly 10 ([Remaining routes, measured](#remaining-routes-measured-november-2026)). | Larger canvases. | Medium |
|
|
149
|
+
| `POST /animate-character`, `mode: pixminimax` | `character` loops, `mode: "pixminimax"` | Schema only | PixelKiln has not sent this request. Its body follows PixelLab's OpenAPI (`frame_count` a multiple of 4 up to 40, `custom_start_frame`, `end_frame`, `keep_first_frame`, `subject_description`, `initial_pose`). The same loop made through PixelLab's MCP `animate_character` (256px, 16 frames, start frame = end frame, November 2026) cost 2, which the plan reads exactly; the plan uses the upscaled-canvas table shared with `/animate-pixminimax`, see `pixMiniMaxCost`. | A bill taken through PixelKiln; 40 frames; `enhance_prompt` on this mode (the OpenAPI says both "v3 only" and "same as v3", and the MCP tool offers none); `color_image` with this mode. | Medium |
|
|
149
150
|
| `POST /characters/animations`, `mode: skeleton-v3` | `character` loops, `mode: "skeleton-v3"` (template or sentence) | Measured live | On a v3 character: a template loop billed 3; a sentence loop (no template) billed 3, 8 frames at 96×96 from a 64px character; `west` added with `animation_group_id` billed 3 and joined the group. A standard-engine character is refused with a 500 "no stored 3D skeleton" ([Skeleton-driven motion, measured](#skeleton-driven-motion-measured), October 2026). | `pro` and `pro-flash` bases; other frame counts; the price per direction across 8 directions is untested. | High |
|
|
150
151
|
| `POST /portrait-character-pro` (+ `GET /portrait-character-pro/{job_id}`) | `character` portrait | Measured live | 16px billed 10 five times (November 2026). Before the cut, 16px billed 20 and four 128px ones billed 25 each (against a plan of 40 then; the plan now says 25). The `GET` reports `usage: null`, so read the job ([Characters, measured](#characters-measured)). The job's `last_response.seed` is the seed it used. **A `seed` in the request makes it ignore the image** ([Portrait seeds](#portrait-seeds-measured)), so none is sent. `target_palette` sent, mock only. | 32, 48, 64, 128 and 160px after the cut. | High |
|
|
151
152
|
| `POST /characters/{id}/portrait` | `character` portrait attach | Measured live | Free (`usage.generations: 0`); the reply holds the only copy of the stored URL ([Characters, measured](#characters-measured)). | None recorded. | Low |
|
|
152
153
|
| `POST /transfer-outfit-v2` | `character` outfit | Measured live | A 2-frame 92×92 job billed 20 (before the cut); frames return inline in `last_response.quantized_images` ([Characters, measured](#characters-measured)). `target_palette` sent, mock only. | Other frame counts (2 to 16) and canvases; the price after the cut. | High |
|
|
153
154
|
| `GET /characters/{id}`, `GET /characters?limit=&offset=` | `adopt`, `fetch --refresh`, `salvage` | Measured live | Free; carries no `usage`; image URLs carry `?t=<updated_at>` ([Object lifecycle](#object-lifecycle)). | None recorded. | Low |
|
|
154
155
|
| `POST /animate-with-text-v3` | revision `animate` | Measured live | A 64×64, 4-frame call billed 1 and returned 5 frames at 64×64 (the input frame plus 4); the plan, which borrows `character`'s v3 formula, said 1 (November 2026, Tier 3; [REVISIONS.md](./REVISIONS.md#animation-and-interpolation)). | Other sizes and frame counts (up to 16 frames at 256px reads 16 by the borrowed formula). | Medium |
|
|
155
|
-
| `POST /animate-pixminimax` | revision `animate-pixminimax` | Measured live | 64×64 at 8 frames billed 1 and returned 9 frames at 64×64 (the input frame plus 8); at 16 frames billed 2 and returned 17. The plan said 1 for the 16-frame call because its old placeholder under-read; it now follows PixelLab's published table (
|
|
156
|
+
| `POST /animate-pixminimax` | revision `animate-pixminimax` | Measured live | 64×64 at 8 frames billed 1 and returned 9 frames at 64×64 (the input frame plus 8); at 16 frames billed 2 and returned 17. The plan said 1 for the 16-frame call because its old placeholder under-read; it now follows PixelLab's published table, read on the canvas the model upscales to (longer side ×4 up to 64px, ×2 up to 128px, ×1 above; at 64, 128 and 256px 4–8 frames = 1, 12–16 = 2, 20–24 = 3, 28 = 4, 32–36 = 5, 40 = 6), see `pixMiniMaxCost` (November 2026, Tier 3; [roadmap](../skills/pixelkiln/references/pixellab-roadmap.md), "Generated effects with PixMiniMax"). | 40 frames and other sizes are unbilled (the table is PixelLab's, not a bill); `enhance_prompt`'s 0.05 is the schema's number. | Medium |
|
|
156
157
|
| `POST /animate-with-skeleton-v3` | revision `animate-skeleton` | Measured live | 8 frames at 64×64 billed 3 and returned 8 frames at 64×64; `description` and `action` are both required, and sent with neither the endpoint returns 422 ([Skeleton-driven motion, measured](#skeleton-driven-motion-measured), October 2026). | Other frame counts (3 = 2 and 15 = 4 are PixelLab's anchors, unbilled). | Low |
|
|
157
158
|
| `POST /estimate-skeleton` | `pixelkiln estimate-skeleton`, gallery pose helper | Measured live | A 64×64 sprite billed 0.1 by the balance ([Remaining routes, measured](#remaining-routes-measured-november-2026)). | | Low |
|
|
158
159
|
| `POST /interpolation-v2` | revision `interpolate` | Measured live | A 64×64 start sprite with a `lastFrame` keyframe and the default frame count billed 10 and returned 14 frames at 64×64 (November 2026, Tier 3; [REVISIONS.md](./REVISIONS.md#interpolate-between-two-keyframes)). The planner said 25, a 2.5× over-read, and now prices the canvas on the 10/15/25 ladder. `target_palette` sent, mock only. | Canvases above 65536px² (15 and 25 tiers, unbilled) and other frame counts. | High |
|
|
@@ -195,8 +196,10 @@ sizes and frame counts the row says were not billed. Two of the planners were
|
|
|
195
196
|
wrong: `interpolate` and `edit-animation` over-read 2.5× (25 planned, 10 billed)
|
|
196
197
|
and `animate-pixminimax` under-read a 16-frame clip (1 planned, 2 billed). Both
|
|
197
198
|
are now calibrated to those bills, and the PixMiniMax planner follows PixelLab's
|
|
198
|
-
published
|
|
199
|
-
been billed
|
|
199
|
+
published upscaled-canvas table (every published point, 4 to 40 frames at 64,
|
|
200
|
+
128 and 256px), of which only 8 and 16 frames at 64px have been billed through
|
|
201
|
+
PixelKiln. A 256px, 16-frame character loop made through PixelLab's MCP cost 2,
|
|
202
|
+
as the table reads.
|
|
200
203
|
|
|
201
204
|
Also worth a second look because they are measured on an old price list: the
|
|
202
205
|
`1dir`, `/portrait-character-pro`, `/transfer-outfit-v2` and `/edit-images-v2`
|
|
@@ -1698,6 +1701,14 @@ generations and finished in about two minutes:
|
|
|
1698
1701
|
frames taller than the rotation (92 × 104 for a crouch). `enhance_prompt`
|
|
1699
1702
|
writes the expanded text into the animation's `animation_type`. A v3 text
|
|
1700
1703
|
loop on a 96px pro-flash base came back at 108 × 108.
|
|
1704
|
+
- The character record does not say which engine drew a loop. Read in November
|
|
1705
|
+
2026 across a 256px character's loops: v3, PixMiniMax and skeleton-v3
|
|
1706
|
+
sentence loops all report `animation_type: "custom-<the action's first 36
|
|
1707
|
+
characters>"`, with no mode field on the group or its directions; a
|
|
1708
|
+
template loop reports its template id (`walking-8-frames`). `adopt` by
|
|
1709
|
+
`remoteId` therefore records the manifest's `animation.mode` as the engine
|
|
1710
|
+
(`modeFrom: "manifest"`), and reports only a template loop declared as a
|
|
1711
|
+
text loop, or the reverse.
|
|
1701
1712
|
- Template loops need a skeleton template. On a pro-flash base with
|
|
1702
1713
|
`template_id: custom` a `walking-8-frames` job failed upstream at once; on
|
|
1703
1714
|
a round robot fitted to `mannequin` the same template returned a different,
|
package/docs/GENERATORS.md
CHANGED
|
@@ -18,7 +18,7 @@ account; [ENDPOINTS.md](./ENDPOINTS.md) contains the detailed experiments.
|
|
|
18
18
|
| Larger or non-square scene or background, up to 792 wide and 688 tall | `imagePro` | 10–25 generations by canvas | 1–64 by size |
|
|
19
19
|
| Controlled pose/expression sequence in ComfyUI | `frames` | 0 `free` provider units | one atomic ordered set |
|
|
20
20
|
| Animated GIF or spritesheet from Retro Diffusion | `animation` | $0.07–$0.25 per animation (published price) | 1 GIF or PNG sheet |
|
|
21
|
-
| A character facing 4 or 8 directions, its poses, and its animations | `character` | 1 per base (standard), 10–25 per pose or portrait, 1 per template loop (2–4 as `skeleton-v3`), 20 per outfit (measured once) | one set of directions, one ordered loop, or one portrait |
|
|
21
|
+
| A character facing 4 or 8 directions, its poses, and its animations | `character` | 1 per base (standard), 10–25 per pose or portrait, 1 per template loop (2–4 as `skeleton-v3`), 1–6 per `pixminimax` loop (1 for 4 or 8 frames at any size), 20 per outfit (measured once) | one set of directions, one ordered loop, or one portrait |
|
|
22
22
|
| A prop, creature, or vehicle with rotations, states, or loops but no character rig | `objectPro` | 6 per base (measured at 32px; about 6 at 64px) | one set of directions, or one ordered loop |
|
|
23
23
|
| UI chrome — panels, buttons, health bars, toolbars | `uiAsset` | 20 generations (measured once, at 256x192) | 1 composited image |
|
|
24
24
|
| One UI element from a description, 16px and up, optionally guided by a concept image | `uiElement` | 10–25 generations (a 32×32 call billed 10) | 1 image |
|
package/docs/MANIFEST.md
CHANGED
|
@@ -57,7 +57,7 @@ not merely a label edit.
|
|
|
57
57
|
|
|
58
58
|
| Field | Type/default | Meaning |
|
|
59
59
|
|---|---|---|
|
|
60
|
-
| `prompt` | string, required unless `mirror`, `derive`, `external`, `portrait`, `outfit`, or a template loop (`animation.template`) | The subject wording wrapped by the selected style's prompt prefix and suffix. A template loop is described by its template; a v3, pro, or sentence (`skeleton-v3` with no template) loop still needs the motion in words. |
|
|
60
|
+
| `prompt` | string, required unless `mirror`, `derive`, `external`, `portrait`, `outfit`, or a template loop (`animation.template`) | The subject wording wrapped by the selected style's prompt prefix and suffix. A template loop is described by its template; a v3, pixminimax, pro, or sentence (`skeleton-v3` with no template) loop still needs the motion in words. |
|
|
61
61
|
| `width` / `height` | integer 16–8192 | Per-asset dimensions for generators that accept rectangular output. Provider limits may be lower. |
|
|
62
62
|
| `size` | integer 16–8192 | Per-asset square size where the generator uses one dimension. |
|
|
63
63
|
| `file` | string | Output path below the style's `outDir`; defaults to `<category>/<assetId>.png`. |
|
|
@@ -67,7 +67,7 @@ not merely a label edit.
|
|
|
67
67
|
| `remoteId` | string | The provider's own id for art that already exists on the account, so `adopt` maps it without matching bytes: an object id, a character id, or `<character id>#<animation group id>`. Not part of the spec's identity. |
|
|
68
68
|
| `revision` | object | Controlled dependency on another asset: `image-to-image`, `inpaint`, or `outpaint`; on PixelLab also `reduce-colors`, `correct-pixelart`, `remove-background`, `normal-map`, the animate modes (`animate`, `animate-pixminimax`, `animate-skeleton`), `interpolate`, and `edit-animation`. `engine: "pro-flash"` selects PixelLab's Pro Flash tier for `image-to-image`/`inpaint`. See [controlled revisions](REVISIONS.md). |
|
|
69
69
|
| `state` | object | `character` styles: a pose or outfit of another character asset. See [Characters](./CHARACTERS.md). |
|
|
70
|
-
| `animation` | object | `character` styles: a loop of another character asset in one direction. `directions` (a list, instead of `direction`) declares the loop for several directions at once and fills the unnamed flips with mirrors; see [One loop, several directions](./CHARACTERS.md#one-loop-several-directions). `mode: "skeleton-v3"` with no `template` animates the asset's `prompt` as a sentence (3–15 `frames`, default 8; a v3 base); see [Loops from a sentence](./CHARACTERS.md#loops-from-a-sentence). `motionFrom` (an asset id) makes a sentence loop follow another direction's loop and share its motion; `directions` writes it for you. Other loops take an even 4–16 `frames`, except `mode: "pro"`: on an `objectPro`, the canvas fixes the count (16 up to 64px; 4, 9 or 16 up to 128px; 9 up to 170px), and leaving it out picks the smallest. |
|
|
70
|
+
| `animation` | object | `character` styles: a loop of another character asset in one direction. `directions` (a list, instead of `direction`) declares the loop for several directions at once and fills the unnamed flips with mirrors; see [One loop, several directions](./CHARACTERS.md#one-loop-several-directions). `mode: "skeleton-v3"` with no `template` animates the asset's `prompt` as a sentence (3–15 `frames`, default 8; a v3 base); see [Loops from a sentence](./CHARACTERS.md#loops-from-a-sentence). `motionFrom` (an asset id) makes a sentence loop follow another direction's loop and share its motion; `directions` writes it for you. `mode: "pixminimax"` draws the prompt on PixelLab's PixMiniMax engine: a multiple of 4 `frames` up to 40, the v3 pose frames (`startFrame`, `endFrame`), `keepFirstFrame`, `enhancePrompt`, `subject` (sent as PixMiniMax's `subject_description`, up to 300 characters) and its own `initialPose` (up to 300 characters, pixminimax only); see [PixMiniMax loops](./CHARACTERS.md#pixminimax-loops). Other loops take an even 4–16 `frames`, except `mode: "pro"`: on an `objectPro`, the canvas fixes the count (16 up to 64px; 4, 9 or 16 up to 128px; 9 up to 170px), and leaving it out picks the smallest. |
|
|
71
71
|
| `portrait` | object | `character` styles: a bust of a base or state's south sprite, `{ "of": "<asset>", "size": 64 }`; `size` is 16, 32, 48, 64 (default), 128, or 160. `attach: false` leaves the parent's PixelLab record without the portrait. A portrait takes no `seed`: sent one, PixelLab ignores the character, so `portrait.seed` is refused and the style's `seed` is not sent. See [Portraits](./CHARACTERS.md#portraits). |
|
|
72
72
|
| `outfit` | object | `character` styles: an existing loop's frames re-clothed from an outfit image, `{ "of": "<loop asset>", "reference": "<image>" }`, with optional `additionalInstructions`. See [Outfit transfer](./CHARACTERS.md#outfit-transfer). |
|
|
73
73
|
| `mirror` | string | Another asset of the same style flipped left to right, made locally at no cost. See [Mirrors](./CHARACTERS.md#mirrors). |
|
package/docs/PAPERDOLL.md
CHANGED
|
@@ -635,7 +635,12 @@ further up are four.
|
|
|
635
635
|
so anything one-sided (a sword, a shoulder strap) is drawn for that side
|
|
636
636
|
rather than flipped. Dress the mirror, do not mirror the layer. A placed
|
|
637
637
|
item on a mirrored loop is pinned by that loop's own anchors, to the hand
|
|
638
|
-
you named.
|
|
638
|
+
you named. A symmetric outfit can still be mirrored for free
|
|
639
|
+
(`"outfit.walk.west": { "mirror": "outfit.walk.east" }`): the flip is
|
|
640
|
+
current while it is the flip of the source layer's current files, and
|
|
641
|
+
`plan` makes it stale only when that layer changes, never on the loop the
|
|
642
|
+
layer was drawn over. While the source layer waits to be redrawn, `plan`
|
|
643
|
+
reports the flip as blocked until a later wave rather than as broken.
|
|
639
644
|
|
|
640
645
|
**One sheet for the game.** `pixelkiln pack --style <style>` puts the
|
|
641
646
|
character and every layer on one sheet, and its atlas pairs them up: a
|
|
@@ -720,6 +725,24 @@ downloaded shows in `plan` as `recoverable`, and `pixelkiln fetch`
|
|
|
720
725
|
re-processes the frames at no cost. Do it before generating layers: a loop
|
|
721
726
|
the cleaning changed makes a layer over it `stale`.
|
|
722
727
|
|
|
728
|
+
**Dark clothing.** A base in black or near-black underwear is mostly below
|
|
729
|
+
the outline threshold, and a loop often lifts its sheen a shade or two from
|
|
730
|
+
the rotations. Until this fix that shade read as foreign, the patch was erased,
|
|
731
|
+
and the outline sweep that follows an erasure ran on through the dark cloth:
|
|
732
|
+
one 256px idle lost 2,563 pixels from a frame and four of eight frames came
|
|
733
|
+
back with holes through the briefs. Now dark shades are vouched for by the
|
|
734
|
+
rotations' dark pixels too, a strange-coloured patch bigger than a ghost gets
|
|
735
|
+
is kept whether it is sealed or reaches the edge of the silhouette, and the
|
|
736
|
+
sweep never takes a connected stretch of dark bigger than that. Loops that
|
|
737
|
+
were cleaned before can come out with different bytes on their next
|
|
738
|
+
`pixelkiln fetch`; no spec hash changes.
|
|
739
|
+
|
|
740
|
+
**Check the frames after cleaning, before generating layers.** `fetch` warns
|
|
741
|
+
when cleaning takes more than 3% of a frame's opaque pixels, which is damage
|
|
742
|
+
rather than ghosts. If a frame has holes, set `"clean": false` on the loop and
|
|
743
|
+
run `pixelkiln fetch`: the provider's original bytes come back from the cache
|
|
744
|
+
at no cost.
|
|
745
|
+
|
|
723
746
|
More in [Characters](./CHARACTERS.md#cleaning-a-loops-frames).
|
|
724
747
|
|
|
725
748
|
## Cost and limits
|
package/package.json
CHANGED
|
@@ -1492,7 +1492,7 @@
|
|
|
1492
1492
|
"frames": {
|
|
1493
1493
|
"type": "integer",
|
|
1494
1494
|
"minimum": 3,
|
|
1495
|
-
"maximum":
|
|
1495
|
+
"maximum": 40
|
|
1496
1496
|
},
|
|
1497
1497
|
"fps": {
|
|
1498
1498
|
"type": "integer",
|
|
@@ -1513,6 +1513,7 @@
|
|
|
1513
1513
|
"template",
|
|
1514
1514
|
"skeleton-v3",
|
|
1515
1515
|
"v3",
|
|
1516
|
+
"pixminimax",
|
|
1516
1517
|
"pro"
|
|
1517
1518
|
]
|
|
1518
1519
|
},
|
|
@@ -1528,6 +1529,11 @@
|
|
|
1528
1529
|
"type": "string",
|
|
1529
1530
|
"minLength": 1
|
|
1530
1531
|
},
|
|
1532
|
+
"initialPose": {
|
|
1533
|
+
"type": "string",
|
|
1534
|
+
"minLength": 1,
|
|
1535
|
+
"maxLength": 300
|
|
1536
|
+
},
|
|
1531
1537
|
"outline": {
|
|
1532
1538
|
"type": "string",
|
|
1533
1539
|
"minLength": 1
|
|
@@ -429,6 +429,19 @@ files, not 6. Account for the `+1` when checking a loop's output count or
|
|
|
429
429
|
estimating its budget; set it `false` only when the caller will supply its
|
|
430
430
|
own first frame downstream.
|
|
431
431
|
|
|
432
|
+
`"mode": "pixminimax"` draws a text loop on PixelLab's PixMiniMax engine:
|
|
433
|
+
a multiple of 4 `frames` up to 40, the v3 pose frames and `keepFirstFrame`,
|
|
434
|
+
`subject` (sent as `subject_description`) and `initialPose` (pixminimax
|
|
435
|
+
only). For a character moving around a prop, draw the prop into
|
|
436
|
+
`startFrame` and pin the loop back with the same `endFrame`; measured at
|
|
437
|
+
256px, 16 frames kept a pole straight through a full turn for 2
|
|
438
|
+
generations, where v3 bent it. Priced by PixelLab's upscaled-canvas table
|
|
439
|
+
(1 for any 4- or 8-frame clip, 6 at most); PixelKiln has not sent this
|
|
440
|
+
request itself, so say the plan is unmeasured before the first run. The
|
|
441
|
+
character record cannot tell PixMiniMax from v3, so `adopt` by `remoteId`
|
|
442
|
+
records the manifest's `mode`: declare a PixMiniMax loop made elsewhere as
|
|
443
|
+
`"mode": "pixminimax"`, never as `v3`, or a later `gen` redraws it with v3.
|
|
444
|
+
|
|
432
445
|
`"mode": "skeleton-v3"` with a `template` poses that template onto the
|
|
433
446
|
character with PixelLab's skeleton video model instead of redrawing each
|
|
434
447
|
frame: the steadiest template loop, 2 to 4 generations and 3 to 5 minutes
|
|
@@ -623,10 +636,11 @@ up: `driftThreshold` or a `reduce-colors` revision over the frame set for
|
|
|
623
636
|
color flicker, `correct-pixelart` or `pixelkiln edit` for stray pixels, and
|
|
624
637
|
check a loop's last frame against its first for a duplicate.
|
|
625
638
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
639
|
+
`plan` prices `animate-pixminimax` (and a `pixminimax` character loop) on
|
|
640
|
+
PixelLab's published table for the upscaled canvas: at 64, 128 and 256px,
|
|
641
|
+
4–8 frames cost 1, 12–16 cost 2, 20–24 cost 3, 28 costs 4, 32–36 cost 5,
|
|
642
|
+
40 costs 6. Only 8 and 16 frames at 64px have been billed through
|
|
643
|
+
pixelkiln; say so before a long clip.
|
|
630
644
|
|
|
631
645
|
Parts of Pro Flash image editing are still outside this adapter: `edit`'s
|
|
632
646
|
reference-image method, palette correction, inpaint's output-method choice,
|