Scene kit command
operation.set
Adjust Last Operation
Runs the person's last operation again with `params` over the values it ran with, from the selection it started from, in place of its undo step (Adjust Last Operation).
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
params | object | yes | The parameters to change, by name; null takes one back to its default |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "operation.set", "params": { "params": <object> } }]
}The required parameters, with placeholders for their types: not a tested example. scene_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
operation | object | no | null when there is none |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"operation": {
"additionalProperties": true,
"description": "null when there is none",
"properties": {
"command": {
"description": "null for a transform",
"type": "string"
},
"fields": {
"items": {
"additionalProperties": true,
"properties": {
"key": {
"type": "string"
},
"type": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"params": {
"additionalProperties": true,
"properties": {},
"type": "object"
},
"title": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"params": {
"additionalProperties": true,
"description": "The parameters to change, by name; null takes one back to its default",
"type": "object"
}
},
"required": [
"params"
],
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.