Motion kit command

view.set3DViewCamera

Set 3D View Camera

Sets the eye [x,y,z], poi [x,y,z] and zoom of a non-camera 3D view (default, orthographic or custom1-3). For the Active Camera view, edit the camera layer's transform instead.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of view.set3DViewCamera
NameTypeRequiredDescription
compinteger | stringnoread by the command beside its listed parameters
eyeany[]no[x,y,z]
poiany[]no[x,y,z]
viewstringno
zoomnumberno

Call through motion_run

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

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

Result

Result JSON Schema
json
{
  "description": "The command's answer"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "comp": {
      "description": "read by the command beside its listed parameters",
      "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"
      ]
    },
    "eye": {
      "description": "[x,y,z]",
      "type": "array"
    },
    "poi": {
      "description": "[x,y,z]",
      "type": "array"
    },
    "view": {
      "type": "string"
    },
    "zoom": {
      "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.