rig-parts 2.74.0 → 2.76.0
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/cli.ts +43 -13
- package/docs/AUTHORING.md +151 -16
- package/docs/STABILITY.md +92 -6
- package/package.json +2 -2
- package/src/check.ts +61 -35
- package/src/compose-seams.ts +476 -0
- package/src/layers.ts +73 -7
- package/src/scene.ts +191 -68
package/cli.ts
CHANGED
|
@@ -43,7 +43,7 @@ import { proposeHeadBox, type Box } from './src/headbox.ts';
|
|
|
43
43
|
import { headCropPreflight, headCropPreflightLines } from './src/headcroppreflight.ts';
|
|
44
44
|
import { makeInputs } from './src/inputs.ts';
|
|
45
45
|
import { idleKeysOf, isIdleKeys } from './src/rig.ts';
|
|
46
|
-
import { bodyCoreBox, bodyOpaqueBox, CORE_ALPHA, depthSkipLine, exportLayers, figuresPhrase, hiddenLayerLine, implausibleRules, layerCoreBox, layerFigures, layerOpaqueBox, type LayerSet, layerSetDiff, type OpaqueBox, OPAQUE_ALPHA_ABOVE, pct, readLayers, readWrapperLayers, ruleSummary, templateLayerNames, templatePsdBytes, times } from './src/layers.ts';
|
|
46
|
+
import { bodyCoreBox, bodyOpaqueBox, CORE_ALPHA, depthSkipLine, exportLayers, figuresPhrase, hiddenLayerLine, implausibleRules, layerCoreBox, layerFigures, layerOpaqueBox, type LayerSet, layerSetDiff, type OpaqueBox, OPAQUE_ALPHA_ABOVE, pct, readLayers, readLayersForExport, readWrapperLayers, ruleSummary, templateLayerNames, templatePsdBytes, times } from './src/layers.ts';
|
|
47
47
|
import { checkImageSize, choosePerson, KEYPOINTS_SPEC, loadKeypoints, type RigJoints, toRigJoints } from './src/keypoints.ts';
|
|
48
48
|
import { checkPartsStage } from './src/partscheck.ts';
|
|
49
49
|
import { withinPartsPath } from './src/partsfiles.ts';
|
|
@@ -58,7 +58,8 @@ import { checkPainting, DEFAULT_PAINTING_FORM, isPaintingForm, PAINTING_FORMS, p
|
|
|
58
58
|
import { decodePngBytes, readPng, writePng } from './src/raster/png.ts';
|
|
59
59
|
import { REQUIREMENTS_SENTENCE } from './src/requirements.ts';
|
|
60
60
|
import { replacementTreeDigest } from './src/replacementrecord.ts';
|
|
61
|
-
import {
|
|
61
|
+
import { clearComposeSeams, readComposeSeamRequest, verifyComposeSeams } from './src/compose-seams.ts';
|
|
62
|
+
import { clearComposeRefusal, type ComposeInput, composeStage, IMAGE_SEP, isComposePreviewWithLoopSeam, PLATE, PROVENANCES, SCENE_CAMERA_REPORT_SPEC, SCENE_REPORT_FILE, SCENE_REPORT_SPEC, SCENE_SPEC } from './src/scene.ts';
|
|
62
63
|
import { buildSheet, defaultCaption, type Tile, tilesFrom } from './src/sheet.ts';
|
|
63
64
|
import { loadComparison, requiredProblems, structureLines } from './src/structure.ts';
|
|
64
65
|
import { type ArgvTable, assembleOutputFiles, bindAssembleWrapperInputs, buildAllocationOutputFiles, BUILD_RUN_FILE, type BuildWrapperRole, CHECK_RUN_FILE, clearComposeRun, clearRunRecord, clearRunStamp, readPackageIdentity, realWhereItExists, recordArgv, rigOutputFiles, RUN_STAMP_FILE, RUN_STAMP_SPEC, type RunStampFileEntry, type RunStampInputEntry, writeRunRecord, writeRunStamp } from './src/runstamp.ts';
|
|
@@ -1062,7 +1063,11 @@ usage:
|
|
|
1062
1063
|
|
|
1063
1064
|
rig-parts compose --scene <scene.json> --out <dir> [--requirements <file.json>] [--accept <bar>[,<bar>...]] [--page-size <px>]
|
|
1064
1065
|
[--loop-seam-bar <channel-delta,pixels> --loop-seam-cap <loops>]
|
|
1065
|
-
[--output-profile preview] [--no-extremes]
|
|
1066
|
+
[--output-profile preview] [--no-extremes] [--motion-seams <request.json>]
|
|
1067
|
+
rig-parts compose --verify-motion-seams <compose-out> --motion-seams <request.json>
|
|
1068
|
+
--motion-seams publishes a bound render and its own seam verdict in
|
|
1069
|
+
motion-seams/. The verification mode re-reads the build and PNG bytes
|
|
1070
|
+
and exits 0 for a verified PASS, or 1 for FAIL, SKIP or a mismatch.
|
|
1066
1071
|
The loop seam flags measure the composed idle in check/, as for check.
|
|
1067
1072
|
--no-extremes omits the extra extremes renders. --output-profile preview
|
|
1068
1073
|
also omits published idle_frames/, contact.png and motion_heat.png, and
|
|
@@ -1329,7 +1334,7 @@ const TAKES = {
|
|
|
1329
1334
|
'comfy plate': { valued: ['--mode', '--painting', '--mask-from', '--occluder', '--out', '--graph', '--model', '--checkpoint-sha256', '--seed', '--grow', '--steps', '--cfg', '--prompt', '--negative', '--host', '--wait', '--timeout', '--poll'], switches: ['--holes', '--help'] },
|
|
1330
1335
|
inputs: { valued: ['--source', '--config', '--out'], switches: ['--help'] },
|
|
1331
1336
|
build: { valued: ['--config', '--source', '--full', '--head', '--out', '--seam', '--project', '--page-edges', '--pack-shape', '--page-size', '--requirements', '--idle-keys', '--lead-in', '--alt', '--set', '--environment', '--wind-band'], switches: ['--loop', '--seam-pairs', '--keep-stills', '--all-sets', '--no-extremes', '--help'] },
|
|
1332
|
-
compose: { valued: ['--scene', '--out', '--requirements', '--accept', '--page-size', '--loop-seam-bar', '--loop-seam-cap', '--output-profile'], switches: ['--no-extremes', '--help'] },
|
|
1337
|
+
compose: { valued: ['--scene', '--out', '--requirements', '--accept', '--page-size', '--loop-seam-bar', '--loop-seam-cap', '--output-profile', '--motion-seams', '--verify-motion-seams'], switches: ['--no-extremes', '--help'] },
|
|
1333
1338
|
'mesh-draft': { valued: ['--config', '--parts', '--out', '--requirements', '--idle-keys', '--page-edges', '--pack-shape', '--page-size'], switches: ['--more-triangles', '--help'] },
|
|
1334
1339
|
'mesh-stats': { valued: ['--config', '--parts'], switches: ['--help'] },
|
|
1335
1340
|
remesh: { valued: ['--rig', '--config', '--parts', '--part', '--mesh', '--delta', '--out', '--requirements', '--idle-keys', '--page-edges', '--pack-shape', '--page-size', '--input-check'], switches: ['--record-input-check', '--help'] },
|
|
@@ -1470,7 +1475,10 @@ function cmdLayers(args: string[]): number {
|
|
|
1470
1475
|
if (flags.has('--canvas')) return usage('--canvas belongs to --template');
|
|
1471
1476
|
if (paths.length !== 1) return usage(`layers takes one path; got ${paths.length}`);
|
|
1472
1477
|
try {
|
|
1473
|
-
const
|
|
1478
|
+
const dir = flags.get('--export');
|
|
1479
|
+
const { set, source } = dir === undefined
|
|
1480
|
+
? { set: readLayers(paths[0]), source: undefined }
|
|
1481
|
+
: readLayersForExport(paths[0], version());
|
|
1474
1482
|
printLayerTable(set);
|
|
1475
1483
|
const context = ['--full', '--source', '--config'];
|
|
1476
1484
|
if (context.some(f => flags.has(f))) {
|
|
@@ -1480,9 +1488,8 @@ function cmdLayers(args: string[]): number {
|
|
|
1480
1488
|
const g = { sourceW: source.width, sourceH: source.height, ...proposeFields(cfg) };
|
|
1481
1489
|
for (const w of headGarmentOverlaps(full, set, g, cfg.assemble.plan)) console.log(` ${headGarmentWarning(w)}`);
|
|
1482
1490
|
}
|
|
1483
|
-
const dir = flags.get('--export');
|
|
1484
1491
|
if (dir !== undefined) {
|
|
1485
|
-
const w = exportLayers(set, dir);
|
|
1492
|
+
const w = exportLayers(set, dir, undefined, source);
|
|
1486
1493
|
// The round trip, read now: what was written must read back as what was read.
|
|
1487
1494
|
const back = readWrapperLayers(dir);
|
|
1488
1495
|
const diff = layerSetDiff(set, back);
|
|
@@ -1686,8 +1693,7 @@ function cmdRig(args: string[]): number {
|
|
|
1686
1693
|
* version ({@link rigcRunnerAt}, issue #337), and every refusal quoting it says so.
|
|
1687
1694
|
*/
|
|
1688
1695
|
/** Read the command's required and optional `--flag value` pairs, and collect its bare switches in `on` when supplied. A string is a usage error. */
|
|
1689
|
-
function flags(args: string[], command: Command, required: readonly string[], on?: Set<string>): Map<string, string> | string {
|
|
1690
|
-
const got = new Map<string, string>();
|
|
1696
|
+
function flags(args: string[], command: Command, required: readonly string[], on?: Set<string>, got = new Map<string, string>()): Map<string, string> | string {
|
|
1691
1697
|
const switches: readonly string[] = TAKES[command].switches;
|
|
1692
1698
|
for (let i = 0; i < args.length; i++) {
|
|
1693
1699
|
const flag = args[i];
|
|
@@ -2715,30 +2721,54 @@ function cmdBuild(args: string[]): number {
|
|
|
2715
2721
|
|
|
2716
2722
|
function cmdCompose(args: string[]): number {
|
|
2717
2723
|
const on = new Set<string>();
|
|
2718
|
-
|
|
2724
|
+
// Keep an output that was parsed before a later syntax error so this invocation clears its stale refusal.
|
|
2725
|
+
const values = new Map<string, string>();
|
|
2726
|
+
const f = flags(args, 'compose', [], on, values);
|
|
2727
|
+
const out = values.get('--out');
|
|
2728
|
+
if (out !== undefined) clearComposeRefusal(out);
|
|
2719
2729
|
if (typeof f === 'string') return usage(f);
|
|
2730
|
+
const seamRequest = f.get('--motion-seams');
|
|
2731
|
+
const verifySeams = f.get('--verify-motion-seams');
|
|
2732
|
+
if (verifySeams !== undefined) {
|
|
2733
|
+
if (seamRequest === undefined || f.size !== 2 || on.size > 0) return usage('--verify-motion-seams takes only --motion-seams <request.json>');
|
|
2734
|
+
try {
|
|
2735
|
+
const verdict = verifyComposeSeams(verifySeams, readComposeSeamRequest(seamRequest));
|
|
2736
|
+
console.log(`bound motion seams: ${verdict.status} — ${verdict.reason}, ${verdict.frameCount} verified frame(s); binding SHA-256 ${verdict.bindingSha256}`);
|
|
2737
|
+
return verdict.status === 'PASS' ? EXIT_OK : EXIT_REFUSED;
|
|
2738
|
+
} catch (err) {
|
|
2739
|
+
return printRefusal(err);
|
|
2740
|
+
}
|
|
2741
|
+
}
|
|
2742
|
+
const scene = f.get('--scene');
|
|
2743
|
+
if (scene === undefined) return usage('compose needs --scene <value>');
|
|
2744
|
+
if (out === undefined) return usage('compose needs --out <value>');
|
|
2720
2745
|
const profile = f.get('--output-profile');
|
|
2721
2746
|
if (profile !== undefined && profile !== 'preview') return usage(`--output-profile ${JSON.stringify(profile)}; preview is required when this flag is given`);
|
|
2722
2747
|
const outputProfile = profile ?? (on.has('--no-extremes') ? 'no-extremes' : undefined);
|
|
2723
2748
|
const loopSeam = parseLoopSeamFlags(f);
|
|
2724
2749
|
if (typeof loopSeam === 'string') return usage(loopSeam);
|
|
2725
|
-
const out = f.get('--out') as string;
|
|
2726
2750
|
clearComposeRun(out);
|
|
2751
|
+
clearComposeSeams(out);
|
|
2727
2752
|
let input: ComposeInput;
|
|
2728
2753
|
try {
|
|
2729
2754
|
const size = parsePageSize(f.get('--page-size'));
|
|
2730
2755
|
const req = f.get('--requirements');
|
|
2731
2756
|
const accept = f.get('--accept');
|
|
2757
|
+
const motionSeams = seamRequest === undefined ? undefined : readComposeSeamRequest(seamRequest);
|
|
2732
2758
|
input = {
|
|
2733
|
-
scene
|
|
2759
|
+
scene, out, ...(size === undefined ? {} : { pageSize: size }),
|
|
2734
2760
|
...(req === undefined ? {} : { requirements: req }), ...(accept === undefined ? {} : { accept: accept.split(',') }),
|
|
2735
2761
|
...(loopSeam === undefined ? {} : { loopSeam }),
|
|
2762
|
+
...(motionSeams === undefined ? {} : { motionSeams }),
|
|
2736
2763
|
...(outputProfile === undefined ? {} : { outputProfile }),
|
|
2737
2764
|
};
|
|
2738
|
-
refusePreviewLoopSeam(input);
|
|
2739
2765
|
} catch (err) {
|
|
2740
2766
|
return printRefusal(err);
|
|
2741
2767
|
}
|
|
2768
|
+
if (isComposePreviewWithLoopSeam(input)) {
|
|
2769
|
+
const r = composeStage(input, printRefusal, console.log);
|
|
2770
|
+
return r.stoppedAt === null ? EXIT_OK : EXIT_REFUSED;
|
|
2771
|
+
}
|
|
2742
2772
|
let bin: string;
|
|
2743
2773
|
try {
|
|
2744
2774
|
bin = findRigc(import.meta.dir, process.env.PATH ?? '');
|
package/docs/AUTHORING.md
CHANGED
|
@@ -4795,6 +4795,13 @@ an inspection and structural-authoring interface:
|
|
|
4795
4795
|
takes as "the manifest's order is the draw order". The export is read back at
|
|
4796
4796
|
once and must reproduce the file's reading — layers, boxes, pixels, order — or
|
|
4797
4797
|
it is refused (`LAYERS_EXPORT_ROUND_TRIP`).
|
|
4798
|
+
The manifest's `source` records the input path as typed, the format, the
|
|
4799
|
+
digest, the Parts version and the export command. For PSD input, compare
|
|
4800
|
+
`source.sha256` against the original PSD bytes. For a wrapper directory or
|
|
4801
|
+
a direct `layers.json` input, compare it against the input manifest bytes.
|
|
4802
|
+
A wrapper re-export records its immediate input manifest. Its digest
|
|
4803
|
+
excludes the PNGs, and later edits to the output do not update the record.
|
|
4804
|
+
Older and hand-written manifests can omit `source`.
|
|
4798
4805
|
2. **Read.** `rig-parts layers work` (the table and its `WARN` lines),
|
|
4799
4806
|
`assemble --full work …` (the part lines, `recomposite vs source`, the
|
|
4800
4807
|
`uncovered hole` and `uncovered:` lines) and `render/recomposite_error_rig.png`
|
|
@@ -4809,6 +4816,10 @@ an inspection and structural-authoring interface:
|
|
|
4809
4816
|
otherwise).
|
|
4810
4817
|
4. **Re-run** from step 2 on `work`.
|
|
4811
4818
|
|
|
4819
|
+
| rule | when it fires | what to correct |
|
|
4820
|
+
| --- | --- | --- |
|
|
4821
|
+
| <a id="LAYERS_EXPORT_SOURCE"></a>`LAYERS_EXPORT_SOURCE` | a wrapper manifest has a malformed `source` block, with the offending field named | re-export from the original input to regenerate the record |
|
|
4822
|
+
|
|
4812
4823
|
**A historical reader control**, not a repair prescription (the selftest's, `fixtures/artist.ts`): a 128-px file whose
|
|
4813
4824
|
right eyewhite was painted half into `back hair` — the 8 x 10 patch at
|
|
4814
4825
|
`[52, 22, 60, 32]`, near-white, behind the face. Assembled from the export:
|
|
@@ -7375,6 +7386,24 @@ and stay absent).
|
|
|
7375
7386
|
| <a id="SCENE_IMAGE_NAME_FREE"></a>`SCENE_IMAGE_NAME_FREE` | two images compose to one file name (`<id>.<file>`: an id `x` with an image `y.cloth.png`, and an id `x.y` with `cloth.png`) | another id |
|
|
7376
7387
|
| <a id="COMPOSE_RIGC_GREEN"></a>`COMPOSE_RIGC_GREEN` | rig-c refused the composed rig; its line is quoted. A field compose carries as written (a constraint's `mix`, a slot's setup attachment) is rigc's to judge | the build whose field it names |
|
|
7377
7388
|
| <a id="COMPOSE_PREVIEW_REQUIRED_CHECK"></a>`COMPOSE_PREVIEW_REQUIRED_CHECK` | `--loop-seam-bar` with `--output-profile preview`. The `loop_seam` record in `check.json` binds the paths and SHA-256 hashes of the first and wrap PNGs under `check/idle_frames/`, which preview removes | `found=preview, required=default or no-extremes`. Use default diagnostics or `--no-extremes` to retain the bound PNGs |
|
|
7389
|
+
| <a id="COMPOSE_MOTION_SEAMS_ANIMATION"></a>`COMPOSE_MOTION_SEAMS_ANIMATION` | the requested take is absent from the packed composed build | use a literal composed take name from that build |
|
|
7390
|
+
| <a id="COMPOSE_MOTION_SEAMS_BINDING"></a>`COMPOSE_MOTION_SEAMS_BINDING` | the report is unreadable or disagrees with the request, its binding digest, the composed check declarations or its inventoried frame readings | use the original report with its request and compose output, or rerun compose to regenerate the bundle |
|
|
7391
|
+
| <a id="COMPOSE_MOTION_SEAMS_BUILD"></a>`COMPOSE_MOTION_SEAMS_BUILD` | the packed candidate is unreadable, differs from the report's source binding, or lacks a matching green gate | use the intact composed output, including its packed pages, scene report and check report |
|
|
7392
|
+
| <a id="COMPOSE_MOTION_SEAMS_CORE"></a>`COMPOSE_MOTION_SEAMS_CORE` | the gate executable cannot report the installed Core version or reports a different version | use the rigc executable from the installed Core dependency |
|
|
7393
|
+
| <a id="COMPOSE_MOTION_SEAMS_FPS"></a>`COMPOSE_MOTION_SEAMS_FPS` | the requested frame rate is invalid, the take and preroll cannot fit Core's sample schedule, or the report or inventory records a different rate | use the expected frame rate and a valid schedule, then produce a new bundle if the request changed |
|
|
7394
|
+
| <a id="COMPOSE_MOTION_SEAMS_INVENTORY"></a>`COMPOSE_MOTION_SEAMS_INVENTORY` | the inventory bytes, frame identities, PNG roster or frame hashes fail validation | use the intact inventory and PNGs from the reported render |
|
|
7395
|
+
| <a id="COMPOSE_MOTION_SEAMS_NOT_JUDGED"></a>`COMPOSE_MOTION_SEAMS_NOT_JUDGED` | compose ran with bound motion seam measurement disabled | supply `--motion-seams <request.json>` to produce and judge a bound frame set |
|
|
7396
|
+
| <a id="COMPOSE_MOTION_SEAMS_REQUEST"></a>`COMPOSE_MOTION_SEAMS_REQUEST` | the request file is unreadable or has an invalid spec, animation name, option or field | supply a valid [bound motion seam request](#bound-composed-motion-seams-issue-1682) |
|
|
7397
|
+
| <a id="COMPOSE_MOTION_SEAMS_SAMPLE"></a>`COMPOSE_MOTION_SEAMS_SAMPLE` | sampling, rendering or publication failed, or Core returned the wrong frame count or missing geometry | correct the cause named by the diagnostic and rerun compose |
|
|
7398
|
+
| <a id="COMPOSE_MOTION_SEAMS_VIEWPORT"></a>`COMPOSE_MOTION_SEAMS_VIEWPORT` | the scene canvas or keyed camera produces an invalid view at the named time | correct the view or supply a valid fixed viewport in the request |
|
|
7399
|
+
| <a id="BODY_ROOT_OPENING"></a>`BODY_ROOT_OPENING` | a body-root frame's visible gap and lower-slot ghost cell count exceeds the one-cell floor | inspect the reported frame and world box for the opening |
|
|
7400
|
+
| <a id="CORE_SEAM_UNREADABLE"></a>`CORE_SEAM_UNREADABLE` | Core refused to measure the pair on the named frame | inspect Core's detail for the drawing or attachment that prevented measurement |
|
|
7401
|
+
| <a id="NO_DECLARED_PAIRS"></a>`NO_DECLARED_PAIRS` | compose check selected no declared motion seam pairs | declare the slots to measure through the compose check inputs |
|
|
7402
|
+
| <a id="NO_SETUP_BAND"></a>`NO_SETUP_BAND` | both slots draw, and the pair shares no setup overlap band on Core's grid | inspect the setup overlap of the declared pair |
|
|
7403
|
+
| <a id="OPENING_WARNING"></a>`OPENING_WARNING` | an explicit or internal-joint pair has a gap or ghost above the one-cell floor | inspect the reported frame to decide whether the opening is intentional |
|
|
7404
|
+
| <a id="REQUIRED_BACKGROUND"></a>`REQUIRED_BACKGROUND` | a required seam has at least one cell open to background | inspect the reported frame and world box for exposed background |
|
|
7405
|
+
| <a id="SLOT_MISSING"></a>`SLOT_MISSING` | the composed poser has no slot with one of the pair's literal names | resolve the declaration against the slots in the packed build |
|
|
7406
|
+
| <a id="SLOT_NOT_DRAWN"></a>`SLOT_NOT_DRAWN` | one or both of the declared slots fail to draw on the named frame | inspect the animation's attachments, visibility and clipping at that time |
|
|
7378
7407
|
| `REQUIREMENTS_*` | the `--requirements` file, as for `check` | as for `check` |
|
|
7379
7408
|
|
|
7380
7409
|
### The command line
|
|
@@ -7705,9 +7734,16 @@ certify visible cloth movement.
|
|
|
7705
7734
|
one of the links identified by the hang-bone walk is unmeasured when the larger of
|
|
7706
7735
|
its unrounded root and tip travels is below **0.5 rig px**. Its row retains both travels, the ratio,
|
|
7707
7736
|
the world reading and `travel_floor_rig_px: 0.5`, with `unmeasured` giving
|
|
7708
|
-
"below half a rig pixel: the motion does not show on the art's own grid"
|
|
7709
|
-
|
|
7710
|
-
|
|
7737
|
+
"below half a rig pixel: the motion does not show on the art's own grid" and
|
|
7738
|
+
`unmeasured_reason: "below_travel_floor"` (issue #1696; the other unmeasured row
|
|
7739
|
+
reasons are `declared_not_swinging`, `limb_segment`, `hybrid_band`,
|
|
7740
|
+
`no_attachment` and `empty_half`). When `measured_driver` names a bone (neither
|
|
7741
|
+
`"none"` nor `"unavailable"`), a `below_travel_floor` row indicates planned
|
|
7742
|
+
motion that does not show on the art's grid. If every row is unmeasured the line
|
|
7743
|
+
is SKIP and retains those rows, with `bar_outcomes.TIP_OVER_ROOT.reason` set to
|
|
7744
|
+
`"below-travel-floor"` when every unmeasured row is `below_travel_floor` and
|
|
7745
|
+
`"no-reading"` for any other reason or mix. In a mixed line with at least one
|
|
7746
|
+
measured row, the measured rows decide PASS or FAIL.
|
|
7711
7747
|
|
|
7712
7748
|
Half a rig pixel is the art-grid threshold fixed before measurement, taking one
|
|
7713
7749
|
rig pixel as the grid unit. The larger-travel operand was amended after measuring
|
|
@@ -8515,6 +8551,48 @@ Both files must remain under `check/idle_frames/` for readers to verify the
|
|
|
8515
8551
|
seam evidence after the run. This refusal clears `rig/`, `check/`, `scene.json` and
|
|
8516
8552
|
`compose-run.json` under `--out` before the gate.
|
|
8517
8553
|
|
|
8554
|
+
#### Bound composed motion seams (issue #1682)
|
|
8555
|
+
|
|
8556
|
+
Use `--motion-seams` on the compose command that produces the scene you intend
|
|
8557
|
+
to play. Declare neighbour pairs through the usual compose check inputs, such
|
|
8558
|
+
as a `motion_seams` declaration with `part: "actor:upper"` and
|
|
8559
|
+
`neighbour: "actor:lower"` in the requirements file. The bundle uses the
|
|
8560
|
+
literal resolved slot names and pair classes selected by compose. Write the
|
|
8561
|
+
consumer's sampling choices in `seam-request.json`.
|
|
8562
|
+
|
|
8563
|
+
```json
|
|
8564
|
+
{
|
|
8565
|
+
"spec": "rig-parts-motion-seams-request/1",
|
|
8566
|
+
"animation": "idle",
|
|
8567
|
+
"fps": 24
|
|
8568
|
+
}
|
|
8569
|
+
```
|
|
8570
|
+
|
|
8571
|
+
```sh
|
|
8572
|
+
rig-parts compose --scene scene.json --out composed \
|
|
8573
|
+
--requirements requirements.json --motion-seams seam-request.json
|
|
8574
|
+
rig-parts compose --verify-motion-seams composed --motion-seams seam-request.json
|
|
8575
|
+
```
|
|
8576
|
+
|
|
8577
|
+
The consumer uses `composed/motion-seams/frames/f0000.png` and subsequent PNGs
|
|
8578
|
+
in `composed/motion-seams/inventory.json` order. Its verdict is
|
|
8579
|
+
`composed/motion-seams/report.json`. Verification requires the expected request,
|
|
8580
|
+
the composed build and the exact PNG bytes. Use the verification exit before
|
|
8581
|
+
consuming the PNGs. Keep the bundle and the composed output together.
|
|
8582
|
+
|
|
8583
|
+
Use `preroll` for a positive whole number of Core warm-up loops. Omit it for
|
|
8584
|
+
the render from rest. Use `viewport: [x, y, width, height]` for a fixed,
|
|
8585
|
+
one-pixel-per-world-unit view with a bottom-left origin and whole pixel
|
|
8586
|
+
dimensions. Without a viewport request, the render uses the scene canvas and
|
|
8587
|
+
follows the keyed camera for a take with a camera track. The inventory records
|
|
8588
|
+
the view at each sample. A different frame rate, preroll or viewport requires
|
|
8589
|
+
its own render and verdict. The bundle attests to the PNGs it publishes.
|
|
8590
|
+
|
|
8591
|
+
The stock compose check retains its own result. Its `--loop-seam-bar` and
|
|
8592
|
+
`--loop-seam-cap` still select the separate Core loop-closure evidence.
|
|
8593
|
+
Without `--motion-seams`, the compose console says that bound render frames
|
|
8594
|
+
were not judged. See the [file and verification contract](STABILITY.md#bound-composed-motion-seams).
|
|
8595
|
+
|
|
8518
8596
|
#### Physics clips and scene repeats (issue #1615)
|
|
8519
8597
|
|
|
8520
8598
|
A physics-only side clip typically enters a character build through
|
|
@@ -8909,6 +8987,63 @@ byte changes its input entry's hash. If multiple entries reference one physical
|
|
|
8909
8987
|
each reference changes. Missing scene, build and plate files retain their named
|
|
8910
8988
|
`SCENE_FILE`, `SCENE_BUILD_PRESENT` and `SCENE_PLATE_PRESENT` refusals.
|
|
8911
8989
|
|
|
8990
|
+
#### Compose refusal report (issue #1690)
|
|
8991
|
+
|
|
8992
|
+
`compose` writes `<out>/compose-refusal.json` with spec
|
|
8993
|
+
`rig-compose-refusal/1` when a scene or its inputs cause a compose, check, or
|
|
8994
|
+
motion-seams stage refusal. The report covers refusals about the scene and its inputs,
|
|
8995
|
+
not about the invocation or the environment.
|
|
8996
|
+
|
|
8997
|
+
The fixed top-level key order is `spec`, `parts_version`, `scene`, `stage`,
|
|
8998
|
+
`count`, and `findings`. The contract is `spec`, `stage`, `count`, `scene`,
|
|
8999
|
+
and each finding's `code`, `object` and `data`. `detail` is the console
|
|
9000
|
+
sentence for a reader. It may be reworded in any release, and a consumer
|
|
9001
|
+
must not parse it.
|
|
9002
|
+
|
|
9003
|
+
The `scene` entry is `{path, sha256}`. It records the path as supplied and the
|
|
9004
|
+
SHA-256 of the scene file's bytes. An unreadable scene file is reported as a
|
|
9005
|
+
finding and has a null hash. The closed set of `stage` values for
|
|
9006
|
+
`rig-compose-refusal/1` is `"compose"`, `"check"`, and `"motion-seams"`.
|
|
9007
|
+
Adding a stage after 2.76.0 is a breaking change. A consumer treats an
|
|
9008
|
+
unknown stage as an unknown refusal. `count` counts the findings in emission
|
|
9009
|
+
order, each with keys `code`, `object`, `detail`, and `data`.
|
|
9010
|
+
|
|
9011
|
+
| Code | `data` |
|
|
9012
|
+
| --- | --- |
|
|
9013
|
+
| `SCENE_WITH_IDLE_DURATION` | `{idle_period, clip_period, search: {limit, result}}`. Periods are in seconds. The limit is 10000 copies of each period. The result is `{found: {idle_repeats, with_idle}}`, `{none: "limit"}`, or `{none: "non_finite"}`. |
|
|
9014
|
+
|
|
9015
|
+
`data` is null for every code not in the table. Adding a `data` shape for
|
|
9016
|
+
another code later is additive. Changing a listed shape is breaking. A
|
|
9017
|
+
consumer treats an unknown code as an unknown refusal, not as an error in
|
|
9018
|
+
the report.
|
|
9019
|
+
|
|
9020
|
+
At `stage: "check"`, the composed `rig/` is present. `scene.json` is present
|
|
9021
|
+
for a scene without a camera. For a camera scene, `scene.json` is present
|
|
9022
|
+
only if the check's packed build bound to the camera audit before the
|
|
9023
|
+
check refused. Otherwise it is absent. `compose-run.json` is absent.
|
|
9024
|
+
|
|
9025
|
+
At `stage: "motion-seams"`, `rig/`, `check/`, and `scene.json` retain the
|
|
9026
|
+
outputs of the completed check. Each finding's `object` is the console's
|
|
9027
|
+
object; for `COMPOSE_MOTION_SEAMS_ANIMATION` and
|
|
9028
|
+
`COMPOSE_MOTION_SEAMS_SAMPLE` it is the requested take.
|
|
9029
|
+
`compose-run.json` is absent.
|
|
9030
|
+
|
|
9031
|
+
Read the end state from disk. A present `compose-run.json` means the run is
|
|
9032
|
+
green. A present `compose-refusal.json` means the run was refused and
|
|
9033
|
+
`stage` tells where. For an invocation that reaches compose and stops
|
|
9034
|
+
normally without either report, `check/check.json` says `PASS: false` or
|
|
9035
|
+
`scene.json` names a character with an `accepted` bar. Accepting a failing
|
|
9036
|
+
character exits 1 and leaves no green `compose-run.json`, because an
|
|
9037
|
+
accepted failing bar never makes the scene green (issue #203). When neither
|
|
9038
|
+
report nor `check/check.json` is present, possible causes include CLI usage
|
|
9039
|
+
refusals, Core discovery refusal, a malformed motion-seams request refused
|
|
9040
|
+
before an output directory is created, and a crash that is not a refusal.
|
|
9041
|
+
Consumers must never infer a failed check from receipt absence alone.
|
|
9042
|
+
|
|
9043
|
+
The two report files are mutually exclusive. A refusal following a green
|
|
9044
|
+
run in the same output directory leaves only `compose-refusal.json` of the
|
|
9045
|
+
pair. A subsequent green run leaves only `compose-run.json` of the pair.
|
|
9046
|
+
|
|
8912
9047
|
|
|
8913
9048
|
### Declared requirements (`--requirements`)
|
|
8914
9049
|
|
|
@@ -11199,8 +11334,8 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
|
|
|
11199
11334
|
| `SEAM_OVER_MOTION.required.pairs[].open_frames` | `SEAM_OVER_MOTION.required.pairs[].open_frames`; `characters.*.SEAM_OVER_MOTION.required.pairs[].open_frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5321](../src/check.ts#L5321) |
|
|
11200
11335
|
| `SEAM_OVER_MOTION.roots.unmeasured` | `SEAM_OVER_MOTION.roots.unmeasured`; `characters.*.SEAM_OVER_MOTION.roots.unmeasured` | 'part' | evidence | [root.part] | [check.ts:5995](../src/check.ts#L5995) |
|
|
11201
11336
|
| `SEAM_OVER_MOTION.rows` | `SEAM_OVER_MOTION.rows`; `characters.*.SEAM_OVER_MOTION.rows` | 'pair'; unique ? 'pair' : 'rig' | finding when motionSeamFinding(want.root !== undefined, p.status, p.banded, opens.length); otherwise evidence; finding when motionSeamFinding(rootNames.has(r.pair), r.status, r.banded, r.opens.length); otherwise evidence | [want.a, want.b]; unique ? [pair.a, pair.b] : [] | [check.ts:5952](../src/check.ts#L5952), [check.ts:6028](../src/check.ts#L6028) |
|
|
11202
|
-
| `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells`; `characters.*.SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b]; subjects | [check.ts:5965](../src/check.ts#L5965), [check.ts:
|
|
11203
|
-
| `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons`; `characters.*.SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b]; subjects | [check.ts:5955](../src/check.ts#L5955), [check.ts:
|
|
11337
|
+
| `SEAM_OVER_MOTION.rows[].cells` | `SEAM_OVER_MOTION.rows[].cells`; `characters.*.SEAM_OVER_MOTION.rows[].cells` | 'pair' | evidence | [want.a, want.b]; subjects | [check.ts:5965](../src/check.ts#L5965), [check.ts:12505](../src/check.ts#L12505) |
|
|
11338
|
+
| `SEAM_OVER_MOTION.rows[].joint_contact.reasons` | `SEAM_OVER_MOTION.rows[].joint_contact.reasons`; `characters.*.SEAM_OVER_MOTION.rows[].joint_contact.reasons` | 'pair' | evidence | [want.a, want.b]; subjects | [check.ts:5955](../src/check.ts#L5955), [check.ts:12496](../src/check.ts#L12496) |
|
|
11204
11339
|
| `SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | `SEAM_OVER_MOTION.rows[].pose_at_worst.joints`; `characters.*.SEAM_OVER_MOTION.rows[].pose_at_worst.joints` | 'rig' | evidence | [] | [motionseampose.ts:53](../src/motionseampose.ts#L53) |
|
|
11205
11340
|
| `SEAM_OVER_MOTION.worlds.*.rows` | `SEAM_OVER_MOTION.worlds.*.rows`; `characters.*.SEAM_OVER_MOTION.worlds.*.rows` | 'pair' | evidence | [want.a, want.b] | [check.ts:5949](../src/check.ts#L5949) |
|
|
11206
11341
|
| `SEAM_OVER_RANGE.joints` | `SEAM_OVER_RANGE.joints`; `characters.*.SEAM_OVER_RANGE.joints` | 'part' | evidence; finding when poses.some(p => p.status === 'FAIL'); otherwise evidence | [j.part] | [check.ts:4983](../src/check.ts#L4983), [check.ts:5029](../src/check.ts#L5029) |
|
|
@@ -11210,30 +11345,30 @@ Internal `SeamSupport.drawings` never enters check JSON. Named requirement
|
|
|
11210
11345
|
| `SETUP_SEAM_TRANSMISSION.rows` | `SETUP_SEAM_TRANSMISSION.rows` | 'pair' | evidence | [under, over] | [coincide.ts:453](../src/coincide.ts#L453) |
|
|
11211
11346
|
| `SOURCE_EXPOSURE.rows` | `SOURCE_EXPOSURE.rows` | 'part' | finding when declared !== undefined && r.px > declared.max_px; otherwise evidence | [r.part] | [sourceexposure.ts:292](../src/sourceexposure.ts#L292) |
|
|
11212
11347
|
| `SOURCE_EXPOSURE.unmeasured` | `SOURCE_EXPOSURE.unmeasured` | part when the supplied mapping resolves a piece; otherwise rig | finding when declared !== undefined; otherwise evidence | resolved piece for u.slot; otherwise [] | [sourceexposure.ts:293](../src/sourceexposure.ts#L293) |
|
|
11213
|
-
| `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing`; `characters.*.STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:
|
|
11214
|
-
| `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots`; `characters.*.STILL_REGIONS_DARK.*.still_slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when r.max > tolerance; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:
|
|
11348
|
+
| `STILL_REGIONS_DARK.*.crossing` | `STILL_REGIONS_DARK.*.crossing`; `characters.*.STILL_REGIONS_DARK.*.crossing` | part when the supplied mapping resolves a piece; otherwise rig | finding | resolved piece for sl.name; otherwise [] | [check.ts:10162](../src/check.ts#L10162) |
|
|
11349
|
+
| `STILL_REGIONS_DARK.*.still_slots` | `STILL_REGIONS_DARK.*.still_slots`; `characters.*.STILL_REGIONS_DARK.*.still_slots` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when r.max > tolerance; otherwise evidence | resolved piece for slot; otherwise [] | [check.ts:10148](../src/check.ts#L10148), [check.ts:10153](../src/check.ts#L10153) |
|
|
11215
11350
|
| `STRESS_OFF_CHAIN.not_read` | `STRESS_OFF_CHAIN.not_read`; `characters.*.STRESS_OFF_CHAIN.not_read` | 'part' | evidence | [r.part] | [check.ts:4574](../src/check.ts#L4574) |
|
|
11216
11351
|
| `STRESS_OFF_CHAIN.per_part` | `STRESS_OFF_CHAIN.per_part`; `characters.*.STRESS_OFF_CHAIN.per_part` | 'part' | finding when poses.some(p => typeof p.reading === 'number' && p.reading > STRESS_RIGID); otherwise evidence | [r.part] | [check.ts:4562](../src/check.ts#L4562) |
|
|
11217
11352
|
| `STRESS_OFF_CHAIN.per_part[].off_chain` | `STRESS_OFF_CHAIN.per_part[].off_chain`; `characters.*.STRESS_OFF_CHAIN.per_part[].off_chain` | 'part' | evidence | [r.part] | [check.ts:4562](../src/check.ts#L4562) |
|
|
11218
11353
|
| `STRESS_OFF_CHAIN.per_part[].poses` | `STRESS_OFF_CHAIN.per_part[].poses`; `characters.*.STRESS_OFF_CHAIN.per_part[].poses` | 'part' | evidence; finding when shown > STRESS_RIGID; otherwise evidence | [r.part] | [check.ts:4530](../src/check.ts#L4530), [check.ts:4548](../src/check.ts#L4548) |
|
|
11219
|
-
| `TEXTURE_STRETCH.per_mesh` | `TEXTURE_STRETCH.per_mesh` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when exceeds; otherwise evidence | resolved piece for m.slot; otherwise [] | [check.ts:
|
|
11220
|
-
| `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts`; `characters.*.TIP_OVER_ROOT.parts` | 'part' | evidence; finding when !ok && !(!rigid && hanging.onLink && Math.max(c.root, c.tip) < TIP_TRAVEL_FLOOR); otherwise evidence | [p.name] | [check.ts:
|
|
11354
|
+
| `TEXTURE_STRETCH.per_mesh` | `TEXTURE_STRETCH.per_mesh` | part when the supplied mapping resolves a piece; otherwise rig | evidence; finding when exceeds; otherwise evidence | resolved piece for m.slot; otherwise [] | [check.ts:11358](../src/check.ts#L11358), [check.ts:11365](../src/check.ts#L11365) |
|
|
11355
|
+
| `TIP_OVER_ROOT.parts` | `TIP_OVER_ROOT.parts`; `characters.*.TIP_OVER_ROOT.parts` | 'part' | evidence; finding when !ok && !(!rigid && hanging.onLink && Math.max(c.root, c.tip) < TIP_TRAVEL_FLOOR); otherwise evidence | [p.name] | [check.ts:9396](../src/check.ts#L9396), [check.ts:9409](../src/check.ts#L9409), [check.ts:9436](../src/check.ts#L9436), [check.ts:9447](../src/check.ts#L9447) |
|
|
11221
11356
|
| `WIND_BAND.pairs` | `WIND_BAND.pairs` | 'pair' | finding when !holdsAll; otherwise evidence | [p.a, p.b] | [check.ts:7129](../src/check.ts#L7129) |
|
|
11222
11357
|
| `WIND_BAND.pairs[].steps` | `WIND_BAND.pairs[].steps` | 'pair' | finding when !s.holds; otherwise evidence | [p.a, p.b] | [check.ts:7140](../src/check.ts#L7140) |
|
|
11223
11358
|
| `figure_openings.openings` | `figure_openings.openings` | 'pair' | finding | [ps.under, ps.above] | [check.ts:6446](../src/check.ts#L6446) |
|
|
11224
|
-
| `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:
|
|
11225
|
-
| `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:
|
|
11226
|
-
| `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:
|
|
11227
|
-
| `requirements.lines.* (stretch)` | `requirements.lines.*` | part when the supplied mapping resolves a piece; otherwise rig | finding when line.status === 'FAIL'; otherwise evidence | resolved piece for r.slot; otherwise [] | [check.ts:
|
|
11359
|
+
| `loop_physics` | `loop_physics` | 'rig' | evidence | [] | [check.ts:8336](../src/check.ts#L8336) |
|
|
11360
|
+
| `requirements.lines.* (bone)` | `requirements.lines.*` | 'rig' | finding when line.status === 'FAIL'; otherwise evidence | [] | [check.ts:8698](../src/check.ts#L8698) |
|
|
11361
|
+
| `requirements.lines.* (seam)` | `requirements.lines.*` | 'pair' | finding when line.status === 'FAIL'; otherwise evidence | [r.part, r.neighbour] | [check.ts:8698](../src/check.ts#L8698) |
|
|
11362
|
+
| `requirements.lines.* (stretch)` | `requirements.lines.*` | part when the supplied mapping resolves a piece; otherwise rig | finding when line.status === 'FAIL'; otherwise evidence | resolved piece for r.slot; otherwise [] | [check.ts:8698](../src/check.ts#L8698) |
|
|
11228
11363
|
| `seam_cells.frames` | `frames` | 'pair' | evidence | [p.a, p.b] | [check.ts:5318](../src/check.ts#L5318) |
|
|
11229
|
-
| `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise []; resolved piece for setupTop ?? ''; otherwise [] | [check.ts:5278](../src/check.ts#L5278), [check.ts:
|
|
11364
|
+
| `seam_cells.frames[].cells` | `frames[].cells` | part when the supplied mapping resolves a piece; otherwise rig | evidence | resolved piece for cell.setupTop ?? ''; otherwise []; resolved piece for setupTop ?? ''; otherwise [] | [check.ts:5278](../src/check.ts#L5278), [check.ts:12470](../src/check.ts#L12470) |
|
|
11230
11365
|
| `seam_pairs` | `seam_pairs`; `seam_scope.whole_pairs`; `sets.*.seam_pairs`; `sets.*.seam_scope.whole_pairs`; `characters.*.seam_pairs`; `characters.*.seam_scope.whole_pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:2909](../src/check.ts#L2909) |
|
|
11231
11366
|
| `seam_scope.changes` | `seam_scope.changes`; `sets.*.seam_scope.changes`; `characters.*.seam_scope.changes` | 'rig' | evidence | [] | [check.ts:2387](../src/check.ts#L2387) |
|
|
11232
11367
|
| `seam_scope.domain.states` | `seam_scope.domain.states`; `sets.*.seam_scope.domain.states`; `characters.*.seam_scope.domain.states` | 'rig' | evidence | [] | [check.ts:2472](../src/check.ts#L2472) |
|
|
11233
|
-
| `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs`; `characters.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:
|
|
11368
|
+
| `seam_scope.pairs` | `seam_scope.pairs`; `sets.*.seam_scope.pairs`; `characters.*.seam_scope.pairs` | subjects.length === 0 ? 'rig' : subjects.length === 1 ? 'part' : 'pair' | evidence | subjects | [check.ts:8134](../src/check.ts#L8134) |
|
|
11234
11369
|
| `seam_scope.population.pairs` | `seam_scope.population.pairs`; `sets.*.seam_scope.population.pairs`; `characters.*.seam_scope.population.pairs` | 'pair' | evidence | row.parts | [check.ts:2843](../src/check.ts#L2843) |
|
|
11235
11370
|
| `seam_scope.population.single_art` | `seam_scope.population.single_art`; `sets.*.seam_scope.population.single_art`; `characters.*.seam_scope.population.single_art` | 'part' | evidence | [row.part] | [check.ts:2844](../src/check.ts#L2844) |
|
|
11236
|
-
| `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:
|
|
11371
|
+
| `slider_stretch.rows` | `slider_stretch.rows` | 'rig' | finding when row.status === 'FAIL'; otherwise evidence | [] | [check.ts:11301](../src/check.ts#L11301) |
|
|
11237
11372
|
|
|
11238
11373
|
| Serialized type path | Reason for schema exclusion |
|
|
11239
11374
|
| --- | --- |
|
package/docs/STABILITY.md
CHANGED
|
@@ -686,7 +686,7 @@ and do not certify visibility. See the
|
|
|
686
686
|
| `check` | `--rig`, `--out`; optional `--parts`, `--source`, `--page-edges`, `--pack-shape`, `--page-size`, `--requirements`, `--seam-pairs`, `--keep-stills`, `--no-extremes` (issue #829), `--set` or `--all-sets` (issue #454), `--environment` (issue #538, additive), `--wind-band` (issue #590, additive), paired `--loop-seam-bar` and `--loop-seam-cap` (issue #1590), `--json` (issue #904), `--help` (`-h`). Standalone `--clip-stretch` takes one scene path and prints only text (issue #1623). |
|
|
687
687
|
| `loop` | `--frames`, `--out`; optional `--palette`, `--help` (`-h`) |
|
|
688
688
|
| `build` | `--config`, `--source`, `--full`, `--out`; optional `--head` (as for `assemble`), `--seam`, `--project`, `--page-edges`, `--pack-shape`, `--page-size`, `--loop`, `--lead-in`, `--requirements`, `--idle-keys`, `--seam-pairs`, `--keep-stills`, `--no-extremes` (issue #829), `--alt` (as for `assemble`, issue #454), `--set` or `--all-sets` (as for `check`, issue #454), `--environment` (as for `check`, issue #538, additive), `--wind-band` (as for `check`, issue #590, additive), `--help` (`-h`) |
|
|
689
|
-
| `compose` | `--scene`, `--out`; optional `--requirements`, `--accept`, `--page-size`, paired `--loop-seam-bar` and `--loop-seam-cap` (issue #1590), `--output-profile` (`preview`) and `--no-extremes` (issue #1610), `--help` (`-h`) |
|
|
689
|
+
| `compose` | `--scene`, `--out`; optional `--requirements`, `--accept`, `--page-size`, paired `--loop-seam-bar` and `--loop-seam-cap` (issue #1590), `--output-profile` (`preview`) and `--no-extremes` (issue #1610), `--motion-seams` (issue #1682), `--help` (`-h`). Verification takes `--verify-motion-seams` and `--motion-seams` only. |
|
|
690
690
|
| `mesh-draft` | `--config`, `--parts`, `--out`; optional `--requirements`, `--idle-keys` (ctl, direct), `--page-edges` (pot, free), `--pack-shape` (rect, polygon), `--page-size`, `--more-triangles`, `--help` (`-h`) |
|
|
691
691
|
| `mesh-stats` | `--config`, `--parts`; optional `--help` (`-h`) (issue #566, additive: prints, writes nothing) |
|
|
692
692
|
| `remesh` | `--rig`, `--config`, `--parts`, `--part`, `--out`, and one of `--mesh` or `--delta` (issue #526); optional `--requirements`, `--idle-keys` (ctl, direct), `--page-edges` (pot, free), `--pack-shape` (rect, polygon), `--page-size`, `--record-input-check` and `--input-check` (issue #617, additive: without them nothing `remesh` prints or writes changes), `--help` (`-h`) |
|
|
@@ -1263,7 +1263,7 @@ execution in historical evidence is inferred from a current export.
|
|
|
1263
1263
|
| `check/check.json` and the rest of `check/` | `check`, `build`, `compose` | [Check verdict spec](#check-report-rig-parts-check1) followed by the reference's fields in its order (`gate_spine_html_green`, `rigc_entry`, `pack_mode` (with `page_size` under `--page-size` only, issue #1273, additive), `environment` after it under `--environment` only (issues #538, #1554, additive: `path` relative to `check`'s `--out`, `sha256`, `steps`), `loop_max_diff`, the seam figures — `seam_mean`, `seam_px_over_40`, `seam_px_over_80` and, from issue #216, `seam_frame_scale`, the frame scale the bar divides the count by), `loop_physics` after `loop_max_diff` when the rig declares a physics constraint, `seam_border` after the seam figures when `parts.json` declares a scene (issue #242), `seam_pairs` after the seam figures when the seam bar fails or `--seam-pairs` asks (each row's picture under `check/seam/`; `--keep-stills` leaves the setup-pose still and its `frames.json` under `check/setup_still/`), then the judgement lines (`BREATH_VISIBLE`, `BLINK_NO_HOLE`, `CHAIN_LAG`, `TIP_OVER_ROOT`, `STILL_REGIONS_DARK`, `TEXTURE_STRETCH`), `ANIMATIONS_DO_NOT_FOLD` after them when `motion.json` holds an animation, the idle included — on every rig with an idle since issue #333 (issues #320, #363: `status`, `animations`, `fps`, `physics_left_out`, `folding` — each `animation`, `slot`, `attachment`, `frames`, `worst_frame`, `worst_triangles`, `triangles`, `physics_on`, `physics_off`, `physics_constraints`, `declared`, `line` — `folding_undeclared`, `declared_not_folding`, `bar`), `FEET_STAY_LEVEL` after it when a `footwear` part rides a bone that hangs from another and `motion.json` holds an animation (issue #348: `status`, `reason` on a SKIP only, `animations`, `fps`, `physics_left_out`, `bar_degrees`, `bar`, `feet` — each `part`, `bone`, `hangs_from`, `status`, `frames_posed`, `worst`), `LIMB_ONE_BONE` after it (and after `STRESS_OFF_CHAIN` where that is written) when `parts.json` holds a limb segment's part (issue #349: `status`, `parts` — each `part`, `limb`, `bone`, `status`, `others`), `SEAM_OVER_RANGE` after it when a limb record carries a `range` (issue #360: `status`, `frame_scale`, `physics_left_out`, `bar` — `mean`, `rig_px_over_40`, `level` — and `joints`, each `part`, `limb`, `segment`, `joint`, `bone`, `range`, `at`, `radius`, `under_px`, `status`, `poses` — each `degrees`, `status`, `mean`, `px_over_40`, `px_over_80`, `rig_px_over_40`, and `step_px` (`left`, `right`) only on a joint whose cap record carries `short_px` (issue #557, additive) — and `unread` on a joint not read), `SEAM_OVER_MOTION` after it when `parts.json` holds a limb segment or `--requirements` a `seam` (issue #493 retains existing pair warnings; issue #686 gates proven body-root pairs only, on gapOpen plus UNDER-owned ghost: `status` — `WARN`, `CLEAR`, `SKIP` or `FAIL` — `reason` on a SKIP only, `fps`, `floor`, `pairs` — each `pair`, `a`, `b`, `declared`, optional `root` (`limb`, `bone`, `parent`) on a proven body-root pair, and `unread` on a pair not read — `animations`, `warnings`, `rows` — each `pair`, `animation`, `status`, `drawn`, `banded`, `opens`, `px`, `max_px`, `under_floor`, and only on new-root rows stock `gapOpen` plus UNDER-owned `ghostA`/`ghostB` cells selected by resolved per-frame draw order gate their summed count against the unchanged strict one-cell floor on the original raw kind boxes (their union when both kinds contribute), never narrowed partition boxes, while `gapCovered` and OVER-owned ghost cells are excluded (issue #711); `cells` retains partition counts, UNDER owner and counted total, `worst` retains frame/count/cell/box, and `roots` retains status, mode `gap-open+under-ghost`, ghost_owner `resolved-draw-order`, pairs, failed, reason and optional unmeasured bindings; eligible candidates whose valid setup bands are all zero retain a named unmeasured root and SKIP bar, including when no pair is selected; measured root FAIL wins over SKIP, while measured PASS plus an unmeasured root remains SKIP; every eligible body drawing with stock setup `banded > 0` is selected, including both when a parent is shared; issue #708 resolves a body slot on its exact generated turn child to the same named carrier only after unique identity-bone/control/per-part-transform proof, without changing pair identity, setup selection or the direct-carrier path; setup-only observation preserves the authored motion and default drawing, root-free inputs add no setup compile/render, and no animation remains SKIP rather than a measured zero; existing internal pair warnings and their exits are unchanged; issue #941 adds optional `required` only under the requirements file's `seam_over_motion.required: true` — `status` (`PASS` or `FAIL`), `mode` `gap-open`, `bar_px` 0, `pairs` (each `pair`, `class` — `body-root`, `internal-joint` or `explicit` — `frames`, `background_frames`, `max_px`) and `failed` — and with it the key is written even when no pair is declared; issue #591 adds optional `worlds` on physics rigs with readable declared pairs and animations: `default` and `still`, each `wind`, `gravity`, `status` (`REPORTED` or `SKIP`), `reason` on SKIP, `dir` only when rendered (relative to check.json: `seam_motion/default` or `seam_motion/still`, the complete retained render with frames.json and each animation's raw seam.json), and `rows` — pair, animation, status, drawn, banded, `gap` and `ghost`, each `max_px` and `worst` only; worst carries `index`, `px`, `cell`, `box`. Per-frame hits stay in the raw sidecars. These raw reference readings add no bar or warning and leave the custom environment reading unchanged), `CLOTH_SETTLES` after it when the rig declares a physics constraint and has an idle (issue #501, a warning and not a bar: `status` — `WARN` or `CLEAR` — `fps`, `frames`, `duration`, `floor_rig_px_per_s`, `floor`, `levers`, `warnings`, `rows` — each `tip`, `root`, `links`, `point`, `settles_at`, `max_rig_px_per_s`, `min_rig_px_per_s`), `PHYSICS_CONTRIBUTES` after it when the rig declares a physics constraint and has an idle and parts (issue #1320, report-only, no bar and no threshold: `status` — `WARN` when a part under physics reads exactly 0, else `CLEAR`; a named `SKIP` writes no key — `off` (what "physics off" means: the same compiled build posed with the poser's physics off, not the spec with its constraints left out), `points`, `world`, `poser`, `fps`, `frames`, `warnings`, `rows` — each `part`, `constraints`, `external_force`, then `vertices`, `frames_read`, `max_rig_px`, `p95_rig_px`, `mean_rig_px`, `max_of_diagonal`, `moves`, or `unmeasured` with its reason), `RECOMPOSITE_HOLES` (its first figure `declared_scene` when `parts.json` declares a scene), `SETUP_POSE_VS_SOURCE`, `WIND_BAND` after it under `--wind-band` only (issues #590, #1554, additive: `status` `"REPORTED"`, `spec` `"rig-parts-wind-band/1"`, `path` relative to `check`'s `--out`, `sha256`, `steady_wind_only` `true`, `gravity` `[0, 1]`, `min`, `max`, `step`, `steps`, `fps`, `animations`, `max_gap`, `max_ghost`, `holds_from`, `holds_to`, `pairs_holding_all`, and `pairs` — each `pair`, `a`, `b`, `holds_all`, `holds_from`, `holds_to`, `first_break_below`, `first_break_above`, `worst_gap`, `worst_ghost`, `steps`), `skipped` (written when `seam` has no `parts.json`, or when `loop` has no `idle` or omitted physics constraints on a closed physics-off idle, issue #1590), `config` under `build` only (issue #607, additive: `path` as `--config` was typed, `sha256` of the bytes the build read; `check` and `compose` read no config and write none), a `requirements` block under `--requirements` (or `build`'s `config.requirements`) — `file` first from issues #556 and #1554, additive: `path` relative to `check`'s `--out`, `sha256`, `keys` — and `PASS`; `check/build/skeleton.json`, `.atlas` and `.png` are the packed artifact rig-c writes, and `check/build-report.json` (`<out>/build-report.json` under standalone `check`) is rig-c's own `build-report/1` (`--report`) for that primary packed compile, written verbatim by `rigc` beside `check/build/` (and listed in `check/build/run.json`'s `outputs[]` as `../build-report.json`) on a failing compile as on a green one (issue #1394; `rig` keeps no compile report because its gate and `--lead-in` compiles are throwaway scratch runs whose outputs are deleted). Missing stock partitions or resolved owner are named refusals, never zero. No whole-box exemption or consumer compositor remains; internal warnings and reference raw readings are unchanged. |
|
|
1264
1264
|
| `part_support_domains.json` | `assemble`, `build` | optional `rig-parts-support-domains/1` independent cut masks and unavailable reasons, with per-domain config-entry provenance and parts/PNG/payload digests; additive beside parts.json, whose bytes and PNGs are unchanged. Legacy output may omit it. `PART_SUPPORT_REPORT` reads pairs in the assembly placement frame and Unowned in actual setup, never as an acceptance gate. |
|
|
1265
1265
|
| `SETUP_SEAM_TRANSMISSION` in `check.json` | `check`, `build` | written only when a painting is registered on the setup grid (a hash-bound `painting_in_rig` or a declared `setup_painting` source), beside `PART_SUPPORT_REPORT` and before `config`, `requirements` and `PASS` (issue #1634, additive): `{ status: "REPORTED", rows }` sorted by `longest_lighter_run_px` descending, then `under`, then `over`; each row carries `under`, `over`, `longest_lighter_run_px`, `lighter_px`, `world_box`, `edge_length_px`, `sampled_px`, `painting_eligible_px`, `darker_px`, `worst_transmission`, `row_scope` (`"pair"`), `row_kind` (`"evidence"`), `row_subjects` (`[under, over]`). Outside `bar_outcomes`, the warning tally and the exit code; absent without a registered painting |
|
|
1266
|
-
| `layers.json`, `<index>_<name>.png` | `layers --export` | the wrapper form `layers` reads (issue #359): `width`, `height`, then `layers` — each `name`, `filename`, `left`, `top`, `right`, `bottom`, `depth_median` (the input's own; `null` for a PSD, the manifest's order then being the draw order) — drawn layers in draw order, then the hidden-art layers; a PNG's name is its index and its layer's name, and the manifest, not the file name, says which layer it is |
|
|
1266
|
+
| `layers.json`, `<index>_<name>.png` | `layers --export` | the wrapper form `layers` reads (issue #359): `width`, `height`, then `layers` — each `name`, `filename`, `left`, `top`, `right`, `bottom`, `depth_median` (the input's own; `null` for a PSD, the manifest's order then being the draw order) — drawn layers in draw order, then the hidden-art layers; a PNG's name is its index and its layer's name, and the manifest, not the file name, says which layer it is. After `layers`, the CLI writes `source` (issue #1689) with `path` (the non-empty input argument as typed), `sha256` (64 lowercase hex digits), `format` (`psd`, `wrapper-directory` or `layers.json`), `parts_version` (the non-empty producer version string) and `command` (`rig-parts layers --export`). All five fields are required when `source` is present. The digest covers the raw PSD bytes for `psd`, the raw `<input>/layers.json` bytes for `wrapper-directory`, and the raw input file bytes for `layers.json`. The wrapper digest excludes referenced PNGs, and a re-export identifies the immediate input. Exact replays with the same input bytes, path spelling and Parts version write identical manifests. The wrapper reader accepts an absent `source` and checks the shape of a present one, without opening the recorded path or verifying its digest. Malformed values and unknown fields are refused with `LAYERS_EXPORT_SOURCE`. |
|
|
1267
1267
|
| the template `.psd` | `layers --template` | one empty layer per name `templateLayerNames` (`src/layers.ts`) holds, bottom first; the same canvas writes the same bytes |
|
|
1268
1268
|
| `proposal.json`, `render/landmarks*.png` | `propose` | the config's four rig sections, `constraints` with `--cloth` (issue #364: a physics constraint per tree link named `<bone>_physics`, a dangling end's `<bone>_translate`, and a skirt swing's transforms `<swing>_<tree>`), `turn` with `--full`/`--head`, `proposed_rig_scale` (issue #354), and `notes` |
|
|
1269
1269
|
| `basis.json` | `propose` | spec `spine-parts-basis/1` |
|
|
@@ -1283,6 +1283,7 @@ execution in historical evidence is inferred from a current export.
|
|
|
1283
1283
|
| compose output profiles | `compose` | Issue #1610 adds `--no-extremes` to omit only the extremes diagnostic renders, and `--output-profile preview` to also omit `check/idle_frames/`, `check/contact.png` and `check/motion_heat.png`. Preview takes precedence when both flags are given. Preview uses the stock idle render and existing readers. Before preview success, Parts removes the idle render directory, including Core's temporary contact sheet, skips copying the sheet to the check root, and skips generating heat. Each omission has a diagnostic `SKIP` line naming its selected flag. The gate, camera binding and check requirements still apply. Success prints `compose: PREVIEW — checks met; …` or `compose: NO EXTREMES — checks met; …`, respectively, and writes `output_profile` as `"preview"` or `"no-extremes"`. Default compose retains the complete diagnostics and the `compose: PASS — …` line. `COMPOSE_PREVIEW_REQUIRED_CHECK` refuses a valid loop seam pair in preview with `found=preview, required=default or no-extremes`, because the `loop_seam` record in `check.json` binds the paths and hashes of first and wrap PNGs that must remain under `check/idle_frames/`. Compose clears its owned outputs before this refusal. See [Compose output profiles](AUTHORING.md#compose-output-profiles-issue-1610). |
|
|
1284
1284
|
| the scene report | `compose` | spec `spine-parts-scene-report/1`; the plate block carries `sha256` of the plate PNG's bytes after `size` (issue #1183, additive under *What "stable" means here*: a new report key in a minor version, so the spec stays `/1`); `pack_mode` records `page_size` only when `--page-size <px>` is given (issue #1352, additive; without `--page-size`, rigc's default 2048 px page and padding 2 on each side bound any plate or region side to at most 2044 px before `CE_ATLAS_REGION_EXCEEDS_PAGE`). `scene.json` writes [`scene_driven`](#scene-driven-timeline-addresses) immediately after `idle_duration`, then `camera` when present, then the optional `repeats` map in declared order as the final top-level key. |
|
|
1285
1285
|
| `scene_driven` | `compose` | Per-take view flag and scene-authored timeline addresses in `scene.json`. See [Scene-driven timeline addresses](#scene-driven-timeline-addresses). |
|
|
1286
|
+
| `motion-seams/` | `compose` | Opt-in frame PNGs, inventory and independent seam verdict. See [Bound composed motion seams](#bound-composed-motion-seams). |
|
|
1286
1287
|
| `SCENE_CHANNEL_SHARED` | `compose` | Refuses shared bone-axis writes and character constraints that write scene-keyed bones. See [Scene-driven timeline addresses](#scene-driven-timeline-addresses). |
|
|
1287
1288
|
| keyed scene camera | `compose` | optional `camera` in `spine-parts-scene/1` (issue #1596). A camera scene writes `spine-parts-scene-report/2` at the existing `scene.json` path with its keyed camera, sampled coverage and framing verdict, and packed model SHA-256. Scenes without a camera write report /1. Both report specs include `scene_driven` on new writes. The camera path uses Core animation easing and the posed backdrop at each sampled frame. Rig, motion and stock check outputs retain their existing semantics. The compose input receipt stays `rig-compose-run/1`. See [Keyed scene camera](AUTHORING.md#keyed-scene-camera-issue-1596) |
|
|
1288
1289
|
| physics clips and scene repeats | `compose` | Issue #1615 adds `characters[].with_idle` and top-level `repeats` to `spine-parts-scene/1`. Each physics-only side clip requires literal `false` at any character scale or a safe integer count of at least 1 at scale 1. Numeric declarations fold whole periods into `idle` with exact duration equality. Both values retain `<id>:<clip>` subject to the character's scale checks, and the character report row echoes `with_idle` when declared. A scene repeat count is a safe integer of at least 2 on an authored take. Its duration remains the whole take length. Its tracks, deforms and camera keys use the exact duration divided by the count as their period. Repeated camera keys are expanded in report /2, with coverage on the full take clock and per-frame figure measurements. See [Physics clips and scene repeats](AUTHORING.md#physics-clips-and-scene-repeats-issue-1615) |
|
|
@@ -1397,6 +1398,68 @@ Files authors write for this package, each with a spec id the reader holds:
|
|
|
1397
1398
|
name on purpose: they name a file format, not the tool, and a file written before
|
|
1398
1399
|
the rename still reads. They do not change at 1.0.
|
|
1399
1400
|
|
|
1401
|
+
### Bound composed motion seams
|
|
1402
|
+
|
|
1403
|
+
`compose --motion-seams <request.json>` (issue #1682) takes
|
|
1404
|
+
`rig-parts-motion-seams-request/1` with `spec`, a literal composed
|
|
1405
|
+
`animation` name and a finite `fps` at least 1. Optional `preroll` is a
|
|
1406
|
+
positive whole loop count, and optional `viewport` is
|
|
1407
|
+
`[x, y, width, height]` in world units at scale 1 with whole pixel
|
|
1408
|
+
dimensions. An explicit viewport takes precedence over the camera.
|
|
1409
|
+
|
|
1410
|
+
The producer requires the gate version to match the installed
|
|
1411
|
+
`@rig-c/core` package version. It uses that package's Core poser on
|
|
1412
|
+
`check/build/` and samples the requested take once with geometry. The
|
|
1413
|
+
same Core frames supply the PNGs and the seam measurements. Both
|
|
1414
|
+
operations use atlas pages decoded from the exact bytes hashed in `sources`.
|
|
1415
|
+
Compose owns and clears `<out>/motion-seams/` on reruns. The bundle contains
|
|
1416
|
+
these files after a completed reading, including a read with a FAIL verdict.
|
|
1417
|
+
|
|
1418
|
+
| File | Contract |
|
|
1419
|
+
| --- | --- |
|
|
1420
|
+
| `frames/f0000.png`, … | Transparent RGBA PNGs in sample order, with no stride. The endpoint-inclusive count is `round(compiled duration × fps) + 1`. |
|
|
1421
|
+
| `inventory.json` | `rig-parts-motion-seams-frames/1` with `animation`, `fps`, compiled `duration`, `frame_count` and ordered `frames`. Each row has `index`, Core `time` in seconds, `viewport`, relative `path` and SHA-256 of the PNG bytes. |
|
|
1422
|
+
| `report.json` | `rig-parts-motion-seams/1` with `core`, `animation`, `fps`, `frame_count`, `request_sha256`, `sources`, `inventory_sha256`, `required`, `unmeasured_roots`, `pairs`, `verdict` and `binding_sha256`. |
|
|
1423
|
+
|
|
1424
|
+
`sources` binds the raw packed model, skeleton, atlas, named page PNGs,
|
|
1425
|
+
scene report and check report by SHA-256. `inventory_sha256` is the hash of
|
|
1426
|
+
the exact inventory JSON bytes. `request_sha256` hashes the parsed request
|
|
1427
|
+
with keys in the order `spec`, `animation`, `fps`, `preroll`, `viewport`
|
|
1428
|
+
(optional keys omitted). `binding_sha256` hashes the report object with
|
|
1429
|
+
that field omitted and all other keys in file order. The request and
|
|
1430
|
+
report hashes use UTF-8 JSON with one-space indentation and a final LF.
|
|
1431
|
+
|
|
1432
|
+
Each pair carries literal slot names `a` and `b`, its `class`, its
|
|
1433
|
+
`declared` origins from compose check, and one row per inventoried frame.
|
|
1434
|
+
A `MEASURED` row carries the Core `gap`, `ghost`, `gap_open` and
|
|
1435
|
+
`gap_covered` hits. Each hit is `{px, cell, box}` in Core's grid, or
|
|
1436
|
+
`null` for zero cells. A `SKIP` row carries a reason from
|
|
1437
|
+
`SLOT_MISSING`, `SLOT_NOT_DRAWN`, `NO_SETUP_BAND` or `CORE_SEAM_UNREADABLE`.
|
|
1438
|
+
The measurement uses Core's raw seam band. Contact connectivity has its
|
|
1439
|
+
own semantics.
|
|
1440
|
+
|
|
1441
|
+
The existing one-cell floor governs warning openings and body-root
|
|
1442
|
+
failures. A body-root row uses the count of visible gaps plus lower-slot
|
|
1443
|
+
ghost cells, with the contributing raw boxes. A required seam fails on
|
|
1444
|
+
any background gap cell, independent of the warning floor.
|
|
1445
|
+
`verdict` counts measured, skipped, warning and failing pair-frames.
|
|
1446
|
+
A failing frame takes precedence. Incomplete coverage or zero declared
|
|
1447
|
+
pairs yields `SKIP`, or `FAIL` when `required` is true. A `PASS`
|
|
1448
|
+
requires full coverage and preserves explicit and internal-joint warnings.
|
|
1449
|
+
|
|
1450
|
+
`compose --verify-motion-seams <out> --motion-seams <request.json>`
|
|
1451
|
+
requires the recorded Core version and recomputes the binding from the
|
|
1452
|
+
consumer request, inventory and build. It checks frame identities and
|
|
1453
|
+
hashes the exact PNG roster. It checks pair classes and unmeasured roots
|
|
1454
|
+
against compose check, validates each frame's finding or skip reason, and
|
|
1455
|
+
recomputes the aggregate verdict. It prints the bound verdict and digest
|
|
1456
|
+
and exits 0 for a verified PASS. A verified FAIL
|
|
1457
|
+
or SKIP exits 1. FPS, bytes and binding mismatches also exit 1 with
|
|
1458
|
+
`COMPOSE_MOTION_SEAMS_FPS`, `COMPOSE_MOTION_SEAMS_INVENTORY`,
|
|
1459
|
+
`COMPOSE_MOTION_SEAMS_BUILD` or `COMPOSE_MOTION_SEAMS_BINDING`.
|
|
1460
|
+
Consume the inventoried frames from that same output. Compose's check,
|
|
1461
|
+
loop-closure evidence, and acceptance status remain separate.
|
|
1462
|
+
|
|
1400
1463
|
### Scene-driven timeline addresses
|
|
1401
1464
|
|
|
1402
1465
|
Issue #1621 adds `scene_driven` to every new compose `scene.json` report.
|
|
@@ -1544,7 +1607,7 @@ pairs and the unmeasured render rows. [Motion seam coverage](AUTHORING.md#motion
|
|
|
1544
1607
|
| `BREATH_VISIBLE` | Idle breath signal on eligible torso or planted-foot regions | `no-idle`, `no-parts`, `no-eligible-region`, `no-reading` (eligible region outside frame) |
|
|
1545
1608
|
| `BLINK_NO_HOLE` | Closed-eye coverage vs open eye and idle | `no-idle`, `no-parts`, `no-eye-parts`, `no-blink-track`, `no-reading` (incompatible grids or eye outside frame) |
|
|
1546
1609
|
| `CHAIN_LAG` | Phase lag for comparable idle parent and child rotation tracks | `no-idle`, `no-comparable-tracks` |
|
|
1547
|
-
| `TIP_OVER_ROOT` | Hem or sleeve tip excursion relative to root | `no-idle`, `no-parts`, `no-swing-parts`, `no-reading` (all eligible parts
|
|
1610
|
+
| `TIP_OVER_ROOT` | Hem or sleeve tip excursion relative to root | `no-idle`, `no-parts`, `no-swing-parts`, `below-travel-floor` (all eligible parts unmeasured and every row is `below_travel_floor`), `no-reading` (all eligible parts unmeasured, any other reason or mix) |
|
|
1548
1611
|
| `STILL_REGIONS_DARK` | Face and planted foot movement in idle | `no-idle`, `no-parts`, `no-eligible-region`, `no-reading` (missing geometry or neither region readable) |
|
|
1549
1612
|
| `TEXTURE_STRETCH` | Idle change to skinned triangle edges, including rejected zero-length rest edges even when no stretch ratio is available | `no-idle`, `no-reading` (missing geometry), `no-meshes`, `no-visible-meshes` |
|
|
1550
1613
|
| `ANIMATIONS_DO_NOT_FOLD` | Undeclared folds across authored animations and unmatched fold exceptions | `no-animation` |
|
|
@@ -1568,6 +1631,28 @@ pairs and the unmeasured render rows. [Motion seam coverage](AUTHORING.md#motion
|
|
|
1568
1631
|
| No required block, root SKIP | SKIP with `no-animation` or `no-complete-root-reading` |
|
|
1569
1632
|
| Neither root nor required gate present | SKIP with `no-root-gate` |
|
|
1570
1633
|
|
|
1634
|
+
Every `TIP_OVER_ROOT.parts[]` row that carries `unmeasured` (including under
|
|
1635
|
+
`characters.<id>.TIP_OVER_ROOT.parts[]`) also carries `unmeasured_reason`
|
|
1636
|
+
(issue #1696), naming the exact `tipLine` branch that left the part unmeasured:
|
|
1637
|
+
|
|
1638
|
+
| `unmeasured_reason` | Meaning |
|
|
1639
|
+
| --- | --- |
|
|
1640
|
+
| `declared_not_swinging` | Declared in the scene requirements file's `not_swinging` or forwarded from a character build's `check/check.json` (`declared_not_swinging`). |
|
|
1641
|
+
| `limb_segment` | A rigid `config.limbs` segment part (`limb` without `limb.band`). |
|
|
1642
|
+
| `hybrid_band` | A `config.limbs` hybrid joint band (`limb.band` present). |
|
|
1643
|
+
| `no_attachment` | The part's slot shows no attachment on idle frame 0. |
|
|
1644
|
+
| `empty_half` | The slot shows an attachment on idle frame 0, and the root or tip half of the part's box holds no art drawn by that attachment. |
|
|
1645
|
+
| `below_travel_floor` | A non-rigid link part whose `max(root, tip)` carrier-frame travel is below `travel_floor_rig_px` (`0.5` rig px). |
|
|
1646
|
+
|
|
1647
|
+
When `TIP_OVER_ROOT` measures no part (`status: "SKIP"`) on a rig with at least
|
|
1648
|
+
one swinging part, the block retains `parts` alongside `reason` so every
|
|
1649
|
+
unmeasured row's `unmeasured_reason` is readable without parsing prose;
|
|
1650
|
+
`bar_outcomes.TIP_OVER_ROOT` records `SKIP` with `reason: "below-travel-floor"`
|
|
1651
|
+
when every unmeasured row is `below_travel_floor`, and keeps `no-reading` on any
|
|
1652
|
+
other unmeasured reason or mix. A `below_travel_floor` row with a named
|
|
1653
|
+
`measured_driver` (a bone name, not `"none"` or `"unavailable"`) means planned
|
|
1654
|
+
motion that does not show on the art's grid.
|
|
1655
|
+
|
|
1571
1656
|
Version-aware consumers read the declared outcomes on the known spec.
|
|
1572
1657
|
Compose reads `bar_outcomes` on a report that declares this spec (issue
|
|
1573
1658
|
#1373); on a report without it, and in the remesh/retune input-check
|
|
@@ -1981,9 +2066,10 @@ in the package.
|
|
|
1981
2066
|
|
|
1982
2067
|
## rig-c
|
|
1983
2068
|
|
|
1984
|
-
`dependencies` takes `@rig-c/core` `3.
|
|
1985
|
-
render's `--loop-seam-bar` and `--loop-seam-cap` support
|
|
1986
|
-
|
|
2069
|
+
`dependencies` takes `@rig-c/core` `3.13.0` exactly. Core supplies the idle
|
|
2070
|
+
render's `--loop-seam-bar` and `--loop-seam-cap` support, `render --frames-at`
|
|
2071
|
+
frame selection for the keyed loop check, and the `poseSlider` reading used for
|
|
2072
|
+
independent dial samples. Bun 1.4 or later
|
|
1987
2073
|
is the declared floor (`engines.bun` `>=1.4.0`; older 1.4 releases are not tested in
|
|
1988
2074
|
CI, which runs `latest`, and compatibility with an older 1.4 release is handled when
|
|
1989
2075
|
reported as an issue). What this package relies on in rig-c, every import
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rig-parts",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.76.0",
|
|
4
4
|
"description": "AI-authored 2D character parts from one anime painting and its See-through layer decomposition: measured parts, weighted-mesh rig specs, verified through rig-c before anything is written. A CLI for agents that cannot see the image.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"ag-psd": "^31.0.2",
|
|
81
|
-
"@rig-c/core": "3.
|
|
81
|
+
"@rig-c/core": "3.13.0"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
84
|
"@esotericsoftware/spine-core": "4.3.13",
|