<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -",
    "macOS: 10.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxLightingAPI_v3/numberOfLights(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxLightingAPI_v3(im)numberOfLightsAtTime:"
  },
  "title" : "numberOfLights(at:)"
}
-->

# numberOfLights(at:)

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

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

## Parameters

`time`

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)