• OctoMY API
  • OctoMY API Reference
  • C++ Classes
  • OctoMY
  • PresetTemplate
  • PresetTemplate Struct

    Parameterized preset that instantiate() turns into a concrete Preset. More...

    Header: #include <PresetTemplate>
    Since: Phase 8

    Detailed Description

    PresetTemplate is a value type. PresetTemplateBook loads and stores templates as JSON through toJson() and fromJson(), and the "create from template" flow fills in the parameters and calls instantiate().

    Minimal substitution language:

    More elaborate expression languages (arithmetic, generator functions) are out of scope for the first pass; if a preset needs legs * joints_per_leg actuators, use a single numJoints parameter and pre-multiply in the UI.

    See also PresetTemplateBook, PresetTemplateWizardActivity, and Preset.