# Set Spotlight to View

### <img src="https://3375153115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5uhW8FwQpXQj8tHUULMo%2Fuploads%2Fgh3OpBvGU6XhTkWFqMuk%2FSPOTLIGHT_07_RENDERING_SET_SPOTLIGHT_TO_VIEW.png?alt=media&#x26;token=1a978d31-6aef-40eb-ac91-e43b7483b59a" 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\)).
