Set Curve Key
Add or move a key on a curve channel, with its interpolation. Setting a time that already has a key replaces it rather than stacking a second one.
hf_set_curve_keyWriteArguments
| Name | Type | Description |
|---|---|---|
curvereq | string | |
timereq | number | |
valuereq | number | |
channel | integer = 0 | 0 for a float curve; 0-2 for vector; 0-3 for colour. |
force | boolean = false | Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first. |
interpolation | string = cubic | 'step' and 'stepped' both mean constant; 'auto' means cubic, which is what the editor's key menu calls it. linear | constant | step | stepped | cubic | auto |
Related tools
Nearby in Data assets:
- Remove Curve Key
- Remove Data Table Row
- Remove Enum Entry
- Remove Struct Member
- Rename Data Table Row
- Set Curve Interpolation
- Set Enum Entry
- Set Struct Member
All 25 tools in Data assets — 16 more not listed here.