Table of Contents

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
object
Axis

Properties

Actions

The axis's actions, sorted by time. Valid for the current frame only.

public IReadOnlyList<ScriptAction> Actions { get; }

Property Value

IReadOnlyList<ScriptAction>

IsLocked

Whether the axis is locked (UI edits blocked). Valid for the current frame only.

public bool IsLocked { get; }

Property Value

bool

IsVisible

Whether the axis is shown in the timeline. Valid for the current frame only.

public bool IsVisible { get; }

Property Value

bool

Name

The axis display name, e.g. "L0 (Stroke)". Valid for the current frame only.

public string Name { get; }

Property Value

string

Role

Which axis this snapshot is of.

public StandardAxis Role { get; }

Property Value

StandardAxis

Selection

The currently selected actions, sorted by time. Valid for the current frame only.

public IReadOnlyList<ScriptAction> Selection { get; }

Property Value

IReadOnlyList<ScriptAction>

Methods

After(ScriptAction)

First action with At strictly greater than time; null if none.

public ScriptAction? After(ScriptAction action)

Parameters

action ScriptAction

Returns

ScriptAction?

After(double)

First action with At strictly greater than time; null if none.

public ScriptAction? After(double time)

Parameters

time double

Returns

ScriptAction?

Before(ScriptAction)

Last action with At strictly less than time; null if none.

public ScriptAction? Before(ScriptAction action)

Parameters

action ScriptAction

Returns

ScriptAction?

Before(double)

Last action with At strictly less than time; null if none.

public ScriptAction? Before(double time)

Parameters

time double

Returns

ScriptAction?

ClosestTo(ScriptAction)

Nearest action to time; null if empty. Ties break earlier.

public ScriptAction? ClosestTo(ScriptAction action)

Parameters

action ScriptAction

Returns

ScriptAction?

ClosestTo(double)

Nearest action to time; null if empty. Ties break earlier.

public ScriptAction? ClosestTo(double time)

Parameters

time double

Returns

ScriptAction?

Edit()

Begins a buffered edit. Mutations apply as one undo step on Commit(). Main-thread only.

public AxisEdit Edit()

Returns

AxisEdit

IsSelected(ScriptAction)

True if an action at time is in the selection.

public bool IsSelected(ScriptAction action)

Parameters

action ScriptAction

Returns

bool

IsSelected(double)

True if an action at time is in the selection.

public bool IsSelected(double time)

Parameters

time double

Returns

bool