# SetScene

Calling this method commands the lighting controller to set a predefined scene. The scene must be defined in the sequence configuration. Setting the scene will change the light level output of all lights defined in the scene, according to the configuration.

### **Method Name:**

SetScene

### **Payload:**

The direct command requires the id of the scene that must be set, as it is defined in the sequence configuration.

```
{
    "id": "sceneId"
}
```

### **Return value**

The direct command returns an OperationResult that indicates either success or failure.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tricloudnexus.io/edge/nexus-modules/data-connector-modules/scenecontrollermodule/direct-commands/setscene.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
