Scene kit command

physics.bake

Bake Physics

Bakes the physics simulation over the frame range; answers the cache state. Without anything simulated it fails. Nonfinite cloth/soft-body motion fails explicitly, discards the derived cache and stops automatic baking until Bake is requested again.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of physics.bake
NameTypeRequiredDescription
waitbooleannoBake every frame now (default); false starts a bake that physics.bakeStep runs

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "physics.bake" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: wait. scene_run answers the step’s result in completed[i].result.

Result

Result of physics.bake
NameTypeRequiredDescription
errorstringnoFailure detail when state is failed; retry explicitly after correcting settings
framesintegerno
state"none" | "baking" | "baked" | "outdated" | "failed"no
totalintegerno
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": {
    "wait": {
      "description": "Bake every frame now (default); false starts a bake that physics.bakeStep runs",
      "type": "boolean"
    }
  },
  "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.