Decompile a .riv into an editable scene spec
riv_decompileReverse .riv files into editable scene specs for riv_create, preserving animations and art. Use to study professional examples or remix into new scenes.
Instructions
Reverse a .riv file into a riv_create scene spec (shapes with bezier vertices, solid/gradient fills incl. gradient opacity, blend modes, artboard background, groups/solos, trim paths, clipping, animations with named easings, loop modes). Paint objects are resolved by parentId, so editor-authored files (paints deferred to the stream tail) decompile correctly. Use it to study professional files as few-shot examples, or to remix them — art AND hand-tuned animation tracks — into new scenes (decompile → edit spec → riv_create; see samples/night-delivery). Object types outside the writer's coverage are counted in 'skipped', not silently dropped. Note: community/marketplace files are CC BY 4.0 — keep attribution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the .riv file | |
| outSpec | No | Write the scene spec JSON here (default: return summary only) |