<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Cinematic",
  "identifier" : "/documentation/Cinematic/CNScript-1ispe/detectionTrack(for:)-6f8mk",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Cinematic"
    ],
    "preciseIdentifier" : "s:9Cinematic8CNScriptC14detectionTrack3forAA011CNDetectionD0CSgSo0F2IDa_tF"
  },
  "title" : "detectionTrack(for:)"
}
-->

# detectionTrack(for:)

A detection track representing all detections with the given detection ID, over the entire Cinematic script.

```
final func detectionTrack(for detectionID: CNDetectionID) -> CNDetectionTrack?
```

## Parameters

`detectionID`

The detection ID of interest.

## Return Value

A detection track representing all detections with the detection ID of interest, over the entire Cinematic script.

---

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)