Schemas / Animation / modulators

rig.anim.track

v1.0.0 · stable maturity: draft 6 fields 6 required

Fields

FieldTypeMeaning
clip entity required rig.anim.clip
target entity required Entity whose field is driven
propertyKey string required Field name / path (same style as tween)
times array<number>min 1 items required Sample times in seconds, ascending, within the clip
values array<number> required Packed samples. Length = times.length * stride
stride enum1 · 3 · 4 required 1 float, 3 vec3, 4 quaternion in x, y, z, w

Sampled keys for one property on one clip. Format when present.

Evaluation is the host. Between samples, interpolate. Quaternions slerp. Outside the clip, hold the end sample when wrap is once. loop repeats. ping-pong reverses.

JSON Schema

Resolves at https://rig.works/schemas/rig.anim.track.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.anim.track.schema.json",
  "title": "rig.anim.track",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "clip": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "target": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "propertyKey": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "times": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "number"
      }
    },
    "values": {
      "type": "array",
      "items": {
        "type": "number"
      }
    },
    "stride": {
      "type": "integer",
      "enum": [
        1,
        3,
        4
      ]
    }
  },
  "required": [
    "clip",
    "target",
    "propertyKey",
    "times",
    "values",
    "stride"
  ],
  "x-rig-maturity": "draft"
}

Seen in

play-scene.json · robot-lesson.json