Motion kit command
project.newFolder
New Folder
Creates a folder in the project panel (`name`, inside folder `parent`) and selects it. Returns {item}; move items into it with project item commands.
- Kit
- Motion 0.1.0 (.kmotion)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | no | |
parent | integer | string | no |
Call through motion_run
text
motion_run {
"path": "<file>.kmotion",
"steps": [{ "command": "project.newFolder" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: name, parent. motion_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"name": {
"type": "string"
},
"parent": {
"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-types": [
"Item"
]
}
},
"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.