<!--
{
  "availability" : [
    "FxPlug: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "professional_video_applications",
  "identifier" : "/documentation/professional_video_applications/FxKeyframeAPI_v3/add(_:toParameter:andChannel:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Professional Video Applications"
    ],
    "preciseIdentifier" : "c:objc(pl)FxKeyframeAPI_v3(im)addKeyframe:toParameter:andChannel:"
  },
  "title" : "add(_:toParameter:andChannel:)"
}
-->

# add(_:toParameter:andChannel:)

Adds a keyframe at the given time.

```
func add(_ keyframe: UnsafePointer<FxKeyframe>, toParameter parameterID: Int, andChannel channelIndex: Int) -> (any Error)?
```

## Parameters

`keyframe`

An FxKeyframe structure describing the keyframe you wish to add to the parameter.

`parameterID`

The ID of the parameter you wish to add a keyframe to.

`channelIndex`

The index of the channel of the parameter you wish to add a keyframe to. For parameters that only have one channel (sliders, angle knobs, checkboxes, etc.) this will be `0`. For compound parameters, it will be the sub-channel. For example, if you wish to keyframe the red channel of a color, it would be channel index `0`, whereas the green channel would be channel index `1`, etc.

---

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)