Skip to content

Export Format

kltyton edited this page Nov 24, 2026 · 1 revision

Export Format & Coordinate Rules

简体中文

Output Structure

AnimCue Studio exports a standard Bedrock 1.8.0 animation file with an additional top-level kltyton:interactions block:

{
  "format_version": "1.8.0",
  "animations": {
    "animation.example.enter": {
      "animation_length": 1.4,
      "bones": {
        "door": {
          "rotation": { "0.4": [0, 0, 0], "1.05": [0, -63, 0] }
        }
      },
      "timeline": {
        "0.5": "grab_handle"
      }
    }
  },
  "kltyton:interactions": {
    "animation.example.enter": {
      "participants": [
        {
          "role": "driver",
          "type": "entity",
          "id": "minecraft:player",
          "bones": {
            "kltyton:root": {
              "position": { "0": [34, 0, -6] },
              "rotation": { "0": [0, 90, 0] }
            },
            "right_arm": {
              "rotation": { "0": [0, 0, 0], "0.5": [-65, 0, -8] },
              "bend": { "0": [0, 0, 0], "0.5": [-42, -18, -12] }
            }
          }
        }
      ],
      "camera": {
        "position": { "0": [-56, 30, -64] }
      }
    }
  }
}

Validation Rules Enforced on Export

  • Unique roles: Every actor must have a unique role name other than primary (up to 64 actors per animation).
  • Top-level roots: Actor root groups must stay directly under the Outliner root.
  • Numeric actor keyframes: Participant tracks and camera tracks must use numeric values ([X, Y, Z] vectors). Molang expressions are still allowed on primary subject bones.
  • Supported interpolation: Participant tracks accept linear and catmullrom (pre / post step frames are preserved).
  • No global rotation on participants: relative_to global rotation is rejected on actor bones; use local rotation or animate kltyton:root.
  • Automatic length extension: If any actor or camera keyframe extends past animation_length, the exported animation_length is extended to cover it.
  • Include unkeyed visible actors: Optional checkbox in the Export dialog writes a static kltyton:root Frame-0 [0, 0, 0] keyframe so visible stationary actors are still included.

Coordinate Symmetry & Round-Trip Import

  • Non-PAL tracks (primary bones, kltyton:root, camera, generic Bedrock/vanilla actors) use Blockbench's Bedrock coordinate convention (X inverted on position, X/Y inverted on rotation) and automatically apply the inverse sign conversion when imported back.
  • PAL / DragonCore actor tracks convert through the PAL North–South mirror exactly once on export and once in reverse on import, preserving 1:1 round-trip fidelity.
  • You can re-import an exported AnimCue .animation.json via the panel's Import icon, File → Import → AnimCue Animation..., or Blockbench's native Bedrock animation import (AnimationCodec.codecs.bedrock.importFile hook). If an imported file references roles not currently in the scene, existing roles are still imported and missing roles are reported in a summary notice.

Clone this wiki locally