# Set Spotlight to View

### <img src="/files/FQz4xYCZv9SuYdjwxkoJ" alt="" data-size="line"> Set Spotlight to View

The SetSpotlightToView command matches spotlight direction to the viewport camera direction.

The command an existing spotlight or adds a new one so that the light point and target point (center of base circle) correspond to the camera point and its target point. This provides a convenient and accurate way to place or add a spotlight so that it is shining exactly in the right place.

**Steps**

* Select a spotlight.

#### Command-line options

-NewSpotlight: Creates a new light with the current view characteristics instead of modifying an existing light.

For more information, please refer to the [Rhino documentation](https://docs.mcneel.com/rhino/8/help/en-us/commands/setspotlighttoview.htm#\(null\)).


---

# 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.rhinoartisan.com/rendering/commands/lights/set-spotlight-to-view.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.
