set_niagara_data_interface_curve
Replace all keys of an FRichCurve property on a Niagara data interface curve, rebuilding its lookup table, recompiling, and saving the system within an undo transaction.
Instructions
Replaces all keys of one FRichCurve property on a curve user-parameter data interface of a Niagara system with the given time/value keys (an empty array clears it), rebuilds the DI's lookup table, requests a recompile and saves the system, inside an undo transaction that records the DI; success requires the save. The DI must already exist (add_niagara_data_interface) and curve_property must name an FRichCurve on it: Curve by default, XCurve/YCurve/ZCurve (WCurve too on Vector4) on vector curve DIs, RedCurve/GreenCurve/BlueCurve/AlphaCurve on color curve DIs. For array DIs use set_niagara_data_interface_array.
Returns: { system_path: string, parameter_name: string, curve_property: string, key_count: int, keys: [{time,value}], set: bool, saved: bool, save_error?: string }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | Array of { time: number, value: number } keys to set (replaces all existing keys on the channel) | |
| system_path | Yes | Asset path of the Niagara System. | |
| curve_property | No | Optional FRichCurve UPROPERTY to author (default "Curve"; e.g. "RedCurve"/"XCurve" on Color/Vector curve DIs) | |
| parameter_name | Yes | Short name of the user-parameter curve DI (no "User." prefix) |