---
title: "frame(at:tolerance:)"
framework: cinematic
role: symbol
role_heading: Instance Method
path: "cinematic/cnscript-1ispe/frame(at:tolerance:)"
---

# frame(at:tolerance:)

The closest frame to the given time within the given tolerance.

## Declaration

```swift
final func frame(at time: CMTime, tolerance: CMTime) -> CNScript.Frame?
```

## Parameters

- `time`: The time of interest.
- `tolerance`: The tolerance time.

## Return Value

Return Value The closest frame to the time of interest within the given tolerance.
