---
title: "detectionTrack(for:)"
framework: cinematic
role: symbol
role_heading: Instance Method
path: "cinematic/cnscript-1ispe/detectiontrack(for:)-6f8mk"
---

# detectionTrack(for:)

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

## Declaration

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

## Parameters

- `detectionID`: The detection ID of interest.

## Return Value

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