public static class AnimationClipCurvesBetween a stored curve and the control that edits one.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ Two functions rather than a wrapper, and they are not symmetrical by accident. The control's AnimationCurve is mutable and raises events; the stored form is a record the YAML binder can write. Handing the editor a live view over the document would make dragging a key an untracked edit — the undo stack would have nothing to record — so the view copies out, edits, and commits through a command.
The stored types themselves are in Vixen.Editor.Assets. They moved there when AnimationClipImporter was written, because an importer cannot see this assembly — the dependency runs the other way — and the alternative was a second parser for the same format. What is left here is the part that is genuinely about the editor: the translation to and from the curve control.
Methods (4)
public static AnimationCurve ToCurve(AnimationCurveData data)The control's curve for a stored one.
public static AnimationCurveData ToData(AnimationProperty property, AnimationCurve curve)The stored form of a control's curve.
public static string Label(AnimationProperty property)What a property is called in a dope sheet's row.
public static float Rest(AnimationProperty property)What a property rests at when nothing keys it.
Used by (2)
- AnimationClipDocumentVixen.Editor.AssetEditors
- AnimationClipViewVixen.Editor.AssetEditors