---
title: "setKeyframeIndex(_:with:forParameter:andChannel:)"
framework: Professional Video Applications
role: symbol
role_heading: Instance Method
platforms: [fxplug 4.0+]
path: "professional_video_applications/fxkeyframeapi_v3/setkeyframeindex(_:with:forparameter:andchannel:)"
---

# setKeyframeIndex(_:with:forParameter:andChannel:)

Sets the keyframe at the given index to have the given info.

## Declaration

```swift
func setKeyframeIndex(_ keyframeIndex: Int, with keyframe: UnsafePointer<FxKeyframe>, forParameter parameterID: Int, andChannel channelIndex: Int) -> (any Error)?
```

## Parameters

- `keyframeIndex`: The index of the keyframe you want to set.
- `keyframe`: An FxKeyframe structure with the information you want to apply to the keyframe at the above index.
- `parameterID`: The ID of the parameter you want to set a keyframe for.
- `channelIndex`: The index of the channel of the parameter you want to set the keyframe for.

## See Also

### Instance Methods

- [add(_:toParameter:andChannel:)](professional_video_applications/fxkeyframeapi_v3/add(_:toparameter:andchannel:).md)
- [channelCount(_:forParameter:)](professional_video_applications/fxkeyframeapi_v3/channelcount(_:forparameter:).md)
- [keyframe(_:atOrAfter:fromParameter:andChannel:)](professional_video_applications/fxkeyframeapi_v3/keyframe(_:atorafter:fromparameter:andchannel:).md)
- [keyframe(_:atOrBefore:fromParameter:andChannel:)](professional_video_applications/fxkeyframeapi_v3/keyframe(_:atorbefore:fromparameter:andchannel:).md)
- [keyframe(_:forParameter:channel:andIndex:)](professional_video_applications/fxkeyframeapi_v3/keyframe(_:forparameter:channel:andindex:).md)
- [keyframeCount(_:forParameter:andChannel:)](professional_video_applications/fxkeyframeapi_v3/keyframecount(_:forparameter:andchannel:).md)
- [parameter(_:channel:hasKeyframe:at:)](professional_video_applications/fxkeyframeapi_v3/parameter(_:channel:haskeyframe:at:).md)
- [removeAllKeyframes(forParameter:andChannel:)](professional_video_applications/fxkeyframeapi_v3/removeallkeyframes(forparameter:andchannel:).md)
- [removeKeyframe(at:fromParameter:andChannel:)](professional_video_applications/fxkeyframeapi_v3/removekeyframe(at:fromparameter:andchannel:).md)
