Scene kit command

light.studio

Studio Lights

Builds or updates a three-point light rig on `target` as one undo step: Key Light (a spot camera-left), Fill Light (a cool area light), Rim Light (a warm spot from behind), named so they can be edited; sets the world strength, ambient occlusion, and the AgX view. `preset` product, dramatic, or soft; `distance` in metres.

Kit
Scene 0.1.0 (.kscene)
Changes the document
yes

Parameters

Parameters of light.studio
NameTypeRequiredDescription
distancenumbernoMetres from the target to the key and rim lights (five times half the target's largest side, at least 1)
preset"product" | "dramatic" | "soft"noThe rig's mood (product)
targetinteger | string | number[]yesWhat the lights point at

Call through scene_run

text
scene_run {
  "path": "<file>.kscene",
  "steps": [{ "command": "light.studio", "params": { "target": <integer | string | number[]> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: distance, preset. 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": {
    "distance": {
      "description": "Metres from the target to the key and rim lights (five times half the target's largest side, at least 1)",
      "type": "number"
    },
    "preset": {
      "description": "The rig's mood (product)",
      "enum": [
        "product",
        "dramatic",
        "soft"
      ],
      "type": "string"
    },
    "target": {
      "description": "What the lights point at",
      "oneOf": [
        {
          "description": "an object's id (its bounding box's centre)",
          "type": "integer"
        },
        {
          "description": "an object's name (its bounding box's centre)",
          "type": "string"
        },
        {
          "description": "a point [x, y, z] in metres",
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Object"
      ]
    }
  },
  "required": [
    "target"
  ],
  "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.