Scene kit command
cursor.set
Set 3D Cursor
Puts the 3D cursor at `location`, or with `at` (a viewport pixel) onto the surface there (where there is none, onto the plane through the cursor facing the view). The person's view state: no undo step.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
at | number[] | no | A viewport pixel [x, y]: the cursor goes onto the surface there, or where there is none, onto the plane through the cursor facing the view |
location | number[] | no | Where to put the cursor, in metres [x, y, z] |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "cursor.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: at, location. scene_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
cursor | number[] | no | the cursor's place, metres |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"cursor": {
"description": "the cursor's place, metres",
"items": {
"type": "number"
},
"type": "array"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"at": {
"description": "A viewport pixel [x, y]: the cursor goes onto the surface there, or where there is none, onto the plane through the cursor facing the view",
"items": {
"type": "number"
},
"type": "array"
},
"location": {
"description": "Where to put the cursor, in metres [x, y, z]",
"items": {
"type": "number"
},
"type": "array"
}
},
"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.