Scene kit command

graph.moveKey

Move Keyframe

Moves a keyframe of an animated property from `frame` to `toFrame`.

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of graph.moveKey
NameTypeRequiredDescription
framenumberyesThe key's frame
indexintegernoThe component, from 0 (0)
pathstringnoThe bone or shape key, for their properties
propertystringyesThe channel's property (location, boneRotation, shapeKey, ...)
targetintegeryesThe channel's object (or material) id
toFramenumbernoThe key's new frame
valuenumbernoThe key's new value (degrees for rotations)

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "graph.moveKey", "params": { "frame": <number>, "property": <string>, "target": <integer> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: index, path, toFrame, value. scene_run answers the step’s result in completed[i].result.

Result

The kit gives no result schema for this command.

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "frame": {
      "description": "The key's frame",
      "type": "number"
    },
    "index": {
      "description": "The component, from 0 (0)",
      "type": "integer"
    },
    "path": {
      "description": "The bone or shape key, for their properties",
      "type": "string"
    },
    "property": {
      "description": "The channel's property (location, boneRotation, shapeKey, ...)",
      "type": "string"
    },
    "target": {
      "description": "The channel's object (or material) id",
      "type": "integer",
      "x-khp-types": [
        "Object",
        "Material"
      ]
    },
    "toFrame": {
      "description": "The key's new frame",
      "type": "number"
    },
    "value": {
      "description": "The key's new value (degrees for rotations)",
      "type": "number"
    }
  },
  "required": [
    "frame",
    "property",
    "target"
  ],
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.