Motion kit command

time.go

Go To

Moves the current time `to` start, end, workStart, workEnd, layerIn/layerOut (the selected layer), or nextKey/prevKey (keyframes of `prop` or the visible properties, markers and the work area).

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of time.go
NameTypeRequiredDescription
layerinteger | stringnoread by the command beside its listed parameters
propintegernouid
to"start" | "end" | "workStart" | "workEnd" | "layerIn" | "layerOut" | "nextKey" | "prevKey"no
visibleobject[]no[{layer, prop}]

Call through motion_run

text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "time.go" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: layer, prop, to, visible. motion_run answers the step’s result in completed[i].result.

Result

Result of time.go
NameTypeRequiredDescription
displaystringno
frameintegerno
timenumberno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "display": {
      "type": "string"
    },
    "frame": {
      "type": "integer"
    },
    "time": {
      "type": "number"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "layer": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
          "type": "integer"
        },
        {
          "description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
          "type": "string"
        }
      ]
    },
    "prop": {
      "description": "uid",
      "type": "integer"
    },
    "to": {
      "enum": [
        "start",
        "end",
        "workStart",
        "workEnd",
        "layerIn",
        "layerOut",
        "nextKey",
        "prevKey"
      ],
      "type": "string"
    },
    "visible": {
      "description": "[{layer, prop}]",
      "items": {
        "additionalProperties": true,
        "properties": {
          "layer": {
            "oneOf": [
              {
                "description": "layer id as motion_inspect lists it (when no layer has that id, its 1-based stack position)",
                "type": "integer"
              },
              {
                "description": "layer id as receipts print it (\"51\"), a layer name, or #n for the n-th from the top",
                "type": "string"
              }
            ],
            "x-khp-name": "name",
            "x-khp-role": "object",
            "x-khp-types": [
              "Layer"
            ]
          },
          "prop": {}
        },
        "type": "object"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (motion_commands through @kition/[email protected], built from KitionAI/kition-motion@4719aa7). As data: commands.jsonl.