Scene kit command

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)
Changes the document
yes

Parameters

Parameters of world.setImage
NameTypeRequiredDescription
base64stringnoThe image's bytes, instead of a path
clearbooleannoRemove the image: the world colour shows and lights again
namestringnoThe image's name, with base64
pathstringnoAn equirectangular .hdr, .png, or .jpg, relative to this scene's folder
rotationnumbernoDegrees the image is turned about the up axis
strengthnumbernoHow 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/[email protected] and the kit itself (scene_commands through @kition/[email protected], built from KitionAI/kition-scene@4d06faf). As data: commands.jsonl.