Motion kit command

expr.errors

Expression errors (the error bar)

Lists the expression errors in `comp` at `time` (seconds, default now): each failing property with layer, path and message, plus text lines like the error bar shows. Use after setting expressions with prop.setExpression.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of expr.errors
NameTypeRequiredDescription
compinteger | stringno
timenumbernos

Call through motion_run

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

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

Result

Result of expr.errors
NameTypeRequiredDescription
compintegerno
countintegerno
errorsany[]no
textany[]no
timenumberno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "comp": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    },
    "errors": {
      "items": {},
      "type": "array"
    },
    "text": {
      "items": {},
      "type": "array"
    },
    "time": {
      "type": "number"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "comp": {
      "oneOf": [
        {
          "description": "comp's item id as motion_inspect lists it",
          "type": "integer"
        },
        {
          "description": "the item id as receipts print it (\"1\"), or the comp's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "time": {
      "description": "s",
      "type": "number"
    }
  },
  "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.