---
title: "numberOfLights(at:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxlightingapi_v3/numberoflights(at:)"
---

# numberOfLights(at:)

Retrieves the number of lights at the passed-in time.

## Declaration

```swift
func numberOfLights(at time: CMTime) -> Int
```

## Parameters

- `time`: The time at which you wish to obtain the number of lights.

## See Also

### Getting Lighting Information

- [lightInfo(_:forLight:at:)](professional_video_applications/fxlightingapi_v3/lightinfo(_:forlight:at:).md)
- [FxLight](professional_video_applications/fxlight.md)
