Scene kit command

render.image

Render Image

Renders the active camera's view (at `frame`, with `samples`) and answers it as a base64 PNG with its size. Does not change the scene.

Kit
Scene 0.1.0 (.kscene)
Changes the document
no

Parameters

Parameters of render.image
NameTypeRequiredDescription
framenumbernoThe frame to render (the current frame when left out)
samplesintegernoSamples per pixel side, 1 to 4 (2)

Call through scene_run

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

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

Result

Result of render.image
NameTypeRequiredDescription
base64stringno
extensionstringno
heightintegerno
mimestringno
widthintegerno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "base64": {
      "type": "string"
    },
    "extension": {
      "type": "string"
    },
    "height": {
      "type": "integer"
    },
    "mime": {
      "type": "string"
    },
    "width": {
      "type": "integer"
    }
  },
  "type": "object"
}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "frame": {
      "description": "The frame to render (the current frame when left out)",
      "type": "number"
    },
    "samples": {
      "description": "Samples per pixel side, 1 to 4 (2)",
      "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.