---
title: "light.environmentBackground: Create Environment Light Background Layer — Motion kit command — Kition"
description: "Create Environment Light Background Layer: a layer showing the environment light's image as the scene's backdrop (an equirectangular sky drawn through the camera)."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/light.environmentBackground"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/light.environmentBackground](https://developer.kition.ai/docs/kits/motion/commands/light.environmentBackground)

# light.environmentBackground

**Create Environment Light Background Layer.** Create Environment Light Background Layer: a layer showing the environment light's image as the scene's backdrop (an equirectangular sky drawn through the camera).

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: yes
- Acts on: `layer` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `comp` | `integer \| string` | no |  |
| `layer` | `integer \| string` | no | environment light (default selected / first); default selected / first |
| `layers` | `any[]` | no | read by the command beside its listed parameters |
| `on` | `boolean` | no | read by the command beside its listed parameters |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "light.environmentBackground" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `comp`, `layer`, `layers`, `on`. motion_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": {
    "comp": {
      "oneOf": [
        {
          "description": "item id",
          "type": "integer"
        },
        {
          "description": "comp name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "layer": {
      "description": "environment light (default selected / first); default selected / first",
      "oneOf": [
        {
          "description": "layer id or 1-based index",
          "type": "integer"
        },
        {
          "description": "layer name or #n",
          "type": "string"
        }
      ],
      "x-khp-index": "#",
      "x-khp-index-numbers": true,
      "x-khp-name": "name",
      "x-khp-types": [
        "Layer"
      ]
    },
    "layers": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "on": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
