Skip to content
Jigwright
HullForge docs

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_keyWrite

Arguments

NameTypeDescription
curvereqstring
timereqnumber
valuereqnumber
channelinteger
= 0
0 for a float curve; 0-2 for vector; 0-3 for colour.
forceboolean
= 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.
interpolationstring
= 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

Nearby in Data assets:

All 25 tools in Data assets — 16 more not listed here.