Vixen
02b45cc4
csharp
public sealed class SequenceView

A cinematic, open for editing: tracks over time, scrubbed against the open scene.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Doc 20's exit criterion for E5 is "a cinematic can be authored, scrubbed and played", and the three verbs are the three things here: a track per actor with keys on it, a playhead that drives the scene as it moves, and a transport that advances the playhead.

⚠ Recording is "key what the actor is doing now", not a capture mode. The way a cinematic is actually authored is: move the playhead, pose the actor with the ordinary gizmo in the ordinary viewport, press the key button. A dedicated record mode that intercepted the gizmo would be a second way to move an object, and the first one already has undo, snapping and numeric entry.

⚠ Leaving the panel restores the scene. SequencePlayer takes a snapshot of the actors a sequence names and puts them back — see its own remarks — and this view is what tells it when. Without that, scrubbing a shot and saving the level writes the actors where frame 47 left them.

Fields and properties (14)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public Timeline Tracks

    The tracks.

  • public UiElement Side

    The column beside them.

  • public UiElement Fields

    The selected track's fields.

  • public UiElement Log

    What the last scrub raised.

  • public ToggleButton Play

    Runs the sequence.

  • public Button AddTransform

    Adds a transform track for the selected entity.

  • public Button AddEvent

    Adds an event track.

  • public Button AddCamera

    Adds a camera track.

  • public Button Key

    Keys the selected track at the playhead.

  • public Button DeleteTrack

    Removes the selected track.

  • public NumericInput Duration

    How long the sequence is.

  • public SequenceTrackData? Selected

    Which track is selected, or .

Methods (7)

  • protected override void OnCreated()

    Builds whatever this element is made of, once, as it joins a document.

  • public void Show(SequenceDocument sequence)

    Shows a sequence.

  • protected override void OnRemoved()

    Called once, as the element leaves the document.

  • public void Reload(SequenceDocument sequence)

    Rebuilds the tracks from the document.

  • public int Seek(float time)

    Moves the playhead and drives the scene.

  • public void Tick(TimeSpan delta)

    Advances the playhead if the transport is running.

  • public void Restate()

    Rebuilds the fields for the selected track.

Used by (3)

  • EditorApplicationVixen.Editor.App
  • MilestoneE5TestsVixen.Editor.App.Tests
  • SequenceEditorFactoryVixen.Editor.AssetEditors