Motion kit command

view.set3DView

Switch 3D View

Switches which view a comp's viewer looks through: activeCamera, default, front, left, top, back, right, bottom or custom1-3. Viewer state only; does not move camera layers.

Kit
Motion 0.1.0 (.kmotion)
Changes the document
no

Parameters

Parameters of view.set3DView
NameTypeRequiredDescription
compinteger | stringno
view"activeCamera" | "default" | "front" | "left" | "top" | "back" | "right" | "bottom" | "custom1" | "custom2" | "custom3"no

Call through motion_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: comp, view. 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": {
      "oneOf": [
        {
          "description": "item id",
          "type": "integer"
        },
        {
          "description": "comp name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "view": {
      "enum": [
        "activeCamera",
        "default",
        "front",
        "left",
        "top",
        "back",
        "right",
        "bottom",
        "custom1",
        "custom2",
        "custom3"
      ],
      "type": "string"
    }
  },
  "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.