Scene kit command
physics.bakeStep
Bake Physics Step
Bakes `frames` more frames of the simulation and answers the cache state; divergent cloth/soft-body motion fails and stops automatic baking.
- Kit
- Scene 0.1.0 (.kscene)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
frames | integer | no | Frames to bake now (default 4) |
Call through scene_run
text
scene_run {
"path": "<file>.kscene",
"steps": [{ "command": "physics.bakeStep" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: frames. scene_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
error | string | no | Failure detail when state is failed; retry explicitly after correcting settings |
frames | integer | no | |
state | "none" | "baking" | "baked" | "outdated" | "failed" | no | |
total | integer | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"error": {
"description": "Failure detail when state is failed; retry explicitly after correcting settings",
"type": "string"
},
"frames": {
"type": "integer"
},
"state": {
"enum": [
"none",
"baking",
"baked",
"outdated",
"failed"
],
"type": "string"
},
"total": {
"type": "integer"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"frames": {
"description": "Frames to bake now (default 4)",
"type": "integer"
}
},
"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.