Class Axis
- Namespace
- Ofs
- Assembly
- Ofs.Api.dll
A read-only snapshot of one axis for the current frame: its sorted actions, selection and O(log n) lookup helpers. Begin a write with Edit().
public sealed class Axis
- Inheritance
-
objectAxis
Properties
Actions
The axis's actions, sorted by time. Valid for the current frame only.
public IReadOnlyList<ScriptAction> Actions { get; }
Property Value
IsLocked
Whether the axis is locked (UI edits blocked). Valid for the current frame only.
public bool IsLocked { get; }
Property Value
IsVisible
Whether the axis is shown in the timeline. Valid for the current frame only.
public bool IsVisible { get; }
Property Value
Name
The axis display name, e.g. "L0 (Stroke)". Valid for the current frame only.
public string Name { get; }
Property Value
Role
Which axis this snapshot is of.
public StandardAxis Role { get; }
Property Value
Selection
The currently selected actions, sorted by time. Valid for the current frame only.
public IReadOnlyList<ScriptAction> Selection { get; }
Property Value
Methods
After(ScriptAction)
First action with At strictly greater than time; null if none.
public ScriptAction? After(ScriptAction action)
Parameters
actionScriptAction
Returns
After(double)
First action with At strictly greater than time; null if none.
public ScriptAction? After(double time)
Parameters
timedouble
Returns
Before(ScriptAction)
Last action with At strictly less than time; null if none.
public ScriptAction? Before(ScriptAction action)
Parameters
actionScriptAction
Returns
Before(double)
Last action with At strictly less than time; null if none.
public ScriptAction? Before(double time)
Parameters
timedouble
Returns
ClosestTo(ScriptAction)
Nearest action to time; null if empty. Ties break earlier.
public ScriptAction? ClosestTo(ScriptAction action)
Parameters
actionScriptAction
Returns
ClosestTo(double)
Nearest action to time; null if empty. Ties break earlier.
public ScriptAction? ClosestTo(double time)
Parameters
timedouble
Returns
Edit()
Begins a buffered edit. Mutations apply as one undo step on Commit(). Main-thread only.
public AxisEdit Edit()
Returns
IsSelected(ScriptAction)
True if an action at time is in the selection.
public bool IsSelected(ScriptAction action)
Parameters
actionScriptAction
Returns
IsSelected(double)
True if an action at time is in the selection.
public bool IsSelected(double time)
Parameters
timedouble