Generate a stochastic variant pack from a seed look
variant_packGenerates perturbed parameter variants around a seed look, clamps to slider ranges, and writes a morph_pack-compatible JSON file to the Obsidian vault.
Instructions
Generate N perturbed variants around an anchor parameter look and write the whole pack to the Obsidian vault as a morph_pack-compatible JSON. Probes the target COMP's customPars for slider ranges to clamp + integer-round per param, then perturbs each variant uniformly within ±delta_range × (normMax − normMin). The resulting file is consumed directly by morph_pack (action=unpack). Requires TDMCP_VAULT_PATH.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Pack name. File defaults to MorphPacks/<name>.morphpack.json. | |
| parent | No | Parent COMP recorded into provenance.container_path. | /project1 |
| comp_path | No | COMP whose customPars give slider ranges for clamping. Defaults to target_path else parent. | |
| seed_look | Yes | Anchor look: { paramName: number }. Names must be numeric custom pars on comp_path. | |
| count | No | Number of perturbed variants (1..64). | |
| delta_range | No | Perturbation magnitude as fraction of each param's slider span. | |
| seed | No | RNG seed for repeatable packs. | |
| variant_prefix | No | Slot id prefix. | |
| include_seed | No | If true, slot v00 is the seed look itself. | |
| target_path | No | Recorded into provenance.target_path so morph_pack can unpack standalone. | |
| interpolation | No | Recorded into provenance. | linear |
| vault_path | No | Override default MorphPacks/<name>.morphpack.json. Resolved via Vault.resolve. | |
| overwrite | No | Allow replacing an existing pack file. |