@rig-c/parts 1.13.0 → 1.13.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/docs/AUTHORING.md +13 -0
- package/package.json +1 -1
package/docs/AUTHORING.md
CHANGED
|
@@ -1149,6 +1149,19 @@ file in rig-c's motion-spec shape beside the config and name it:
|
|
|
1149
1149
|
{ "bone": "mouth", "property": "scaley", "keys": [ { "t": 0, "v": [1] }, { "t": 0.25, "v": [1.4] }, { "t": 0.5, "v": [1] } ] } ] } } }
|
|
1150
1150
|
```
|
|
1151
1151
|
|
|
1152
|
+
**Which way a key moves a bone.** A `rotate` value is degrees added to the bone's setup
|
|
1153
|
+
rotation, counter-clockwise positive in the rig's y-up space — rig-c's convention (its
|
|
1154
|
+
AUTHORING §3.2, `rotation`: "degrees, counter-clockwise, y up"; its `src/transform.ts`, "World
|
|
1155
|
+
rotation in degrees, CCW, y up") — and the rendered image shows the same turn, so on the
|
|
1156
|
+
painting a positive key swings a hanging arm toward the image's right and up, a negative one
|
|
1157
|
+
toward the image's left and up. `translatex` and `translatey` are in the bone's parent's axes,
|
|
1158
|
+
y up, so the positive `translatey` on `brow_r` above raises the brow. Measured on `demo` (one
|
|
1159
|
+
key at time 0, rendered by rigc on its 330x512 grid): `sleeve_l0`, the sleeve on the image's
|
|
1160
|
+
right, at +30 moved its hand bone `sleeve_l2` 43.9 px right and 27.6 px up, at −30 51.8 px left
|
|
1161
|
+
(toward the body) and 2.0 px down; `sleeve_r0`, on the image's left, at +30 moved `sleeve_r2`
|
|
1162
|
+
51.9 px right, toward the body — so `demo`'s `wave` raises the image's right arm with
|
|
1163
|
+
`sleeve_l0` at +48 (selftest `RG99` holds the sign on the rig fixture).
|
|
1164
|
+
|
|
1152
1165
|
`build` writes `surprised` into `rig/motion.json` after `idle`, gates it with the rig, and
|
|
1153
1166
|
`check` names it on a line of its own ([`examples/reference-sample`](https://github.com/rig-c/parts/tree/main/examples/reference-sample), in the repository, carries one, `animations.json` with `hop`, the
|
|
1154
1167
|
recipe below). With exactly this file beside `examples/reference-sample`'s config in its place,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rig-c/parts",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.1",
|
|
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
|
"bin": {
|