---
title: "render.trace.step: Continue Path Trace — Scene kit command — Kition"
description: "Continues the path-traced render for `budgetMs` and answers its progress, with the picture so far when `preview`."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/render.trace.step"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/render.trace.step](https://developer.kition.ai/docs/kits/scene/commands/render.trace.step)

# render.trace.step

**Continue Path Trace.** Continues the path-traced render for `budgetMs` and answers its progress, with the picture so far when `preview`.

- Kit: Scene 0.1.0 (.kscene); reference: [Scene kit commands](https://developer.kition.ai/docs/kits/scene.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `budgetMs` | `number` | no | About how long to render, in milliseconds (50) |
| `preview` | `boolean` | no | Answer the picture so far as a PNG (false) |

## Call through scene_run

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

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

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `base64` | `string` | no |  |
| `done` | `boolean` | no |  |
| `fraction` | `number` | no |  |
| `height` | `integer` | no |  |
| `samples` | `integer` | no |  |
| `target` | `integer` | no |  |
| `width` | `integer` | no |  |

```json
{
  "additionalProperties": true,
  "description": "the render's progress, with the picture so far as base64 PNG when asked",
  "properties": {
    "base64": {
      "type": "string"
    },
    "done": {
      "type": "boolean"
    },
    "fraction": {
      "type": "number"
    },
    "height": {
      "type": "integer"
    },
    "samples": {
      "type": "integer"
    },
    "target": {
      "type": "integer"
    },
    "width": {
      "type": "integer"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "budgetMs": {
      "description": "About how long to render, in milliseconds (50)",
      "type": "number"
    },
    "preview": {
      "description": "Answer the picture so far as a PNG (false)",
      "type": "boolean"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/scene-darwin-arm64@0.1.0 and the kit itself (scene_commands through @kition/cli@0.1.1, built from KitionAI/kition-scene@4d06faf).
