Motion kit command
view.assign3dShortcut
Assign Shortcut to 3D View
View ▸ Assign Shortcut to "<current 3D view>": F10, F11 or F12 switches to the view.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
comp | integer | string | no | |
slot | "F10" | "F11" | "F12" | no |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "view.assign3dShortcut" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: comp, slot. 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"
]
},
"slot": {
"enum": [
"F10",
"F11",
"F12"
],
"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.