---
title: "world.setImage: World Image — Scene kit command — Kition"
description: "Sets an environment image (workspace path or base64) as the world background, with rotation and strength, or clears it."
canonical: "https://developer.kition.ai/docs/kits/scene/commands/world.setImage"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/scene/commands/world.setImage](https://developer.kition.ai/docs/kits/scene/commands/world.setImage)

# world.setImage

**World Image.** Sets an environment image (workspace path or base64) as the world background, with rotation and strength, or clears it.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `base64` | `string` | no | The image's bytes, instead of a path |
| `clear` | `boolean` | no | Remove the image: the world colour shows and lights again |
| `name` | `string` | no | The image's name, with base64 |
| `path` | `string` | no | An equirectangular .hdr, .png, or .jpg, relative to this scene's folder |
| `rotation` | `number` | no | Degrees the image is turned about the up axis |
| `strength` | `number` | no | How strongly the world lights the scene |

## Call through scene_run

```text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "world.setImage" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `base64`, `clear`, `name`, `path`, `rotation`, `strength`. scene_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "base64": {
      "description": "The image's bytes, instead of a path",
      "type": "string"
    },
    "clear": {
      "description": "Remove the image: the world colour shows and lights again",
      "type": "boolean"
    },
    "name": {
      "description": "The image's name, with base64",
      "type": "string"
    },
    "path": {
      "description": "An equirectangular .hdr, .png, or .jpg, relative to this scene's folder",
      "type": "string",
      "x-khp-file": {
        "accept": [
          "png",
          "jpg",
          "jpeg",
          "hdr"
        ],
        "access": "read"
      }
    },
    "rotation": {
      "description": "Degrees the image is turned about the up axis",
      "type": "number"
    },
    "strength": {
      "description": "How strongly the world lights the scene",
      "type": "number"
    }
  },
  "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).
