---
title: "viewMatrix(at:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.1+]
path: "professional_video_applications/fx3dapi_v5/viewmatrix(at:)"
---

# viewMatrix(at:)

Gets the 4x4 view matrix.

## Declaration

```swift
func viewMatrix(at time: CMTime) throws -> FxMatrix44
```

## Parameters

- `time`: Specified time, expressed as a CMTime, to retrieve the matrix.

## Return Value

Return Value An FxMatrix44 containing the matrix.

## See Also

### Accessing the 3D Environment

- [focalLength(at:error:)](professional_video_applications/fx3dapi_v5/focallength(at:error:).md)
- [layerMatrix(at:)](professional_video_applications/fx3dapi_v5/layermatrix(at:).md)
- [metalProjectionMatrix(at:)](professional_video_applications/fx3dapi_v5/metalprojectionmatrix(at:).md)
- [frustumLeft(_:right:bottom:top:near:far:at:)](professional_video_applications/fx3dapi_v5/frustumleft(_:right:bottom:top:near:far:at:).md)
