AnimationManifest

References
public sealed class AnimationManifest
The record an animation leaves in its output folder. It exists so an interrupted animation can be picked up where it left off, so a resumed animation can tell whether the frames already on disk belong to the same setup, and so a folder full of numbered images can say what it is and where it came from.

A manifest is derived data, not part of the document. It lives with the images it describes, which is what keeps an unrelated edit to the definition from invalidating a half finished render.

Fields

FileName

#
File name of the manifest inside an output folder.
public const string FileName = "_animation.txt"

Properties

Completed

#
Gets the moment the animation stopped, or null while it is still running or if it was interrupted before it could record one.
public DateTime? Completed { get; }

Cyclic

#
Gets whether the animation is meant to be played as a loop.
public bool Cyclic { get; }

Duration

#
Gets how long the run took.
public TimeSpan Duration { get; }

Failed

#
Gets the number of frames the last run could not write.
public int Failed { get; }

Fingerprint

#
Gets the fingerprint of every setting which affects the written images.
public string Fingerprint { get; }

FrameCount

#
Gets the number of frames the animation was supposed to write.
public int FrameCount { get; }

Id

#
Gets the id of the animation which wrote this manifest.
public string Id { get; }

IsComplete

#
Gets whether the animation ran to the end and left no gaps behind.
public bool IsComplete { get; }

Name

#
Gets the name the animation had when it last ran.
public string Name { get; }

Skipped

#
Gets the number of frames the last run found already on disk.
public int Skipped { get; }

Started

#
Gets the moment the animation started.
public DateTime Started { get; }

Written

#
Gets the number of frames written by the last run.
public int Written { get; }

Methods

Create

#
Create a manifest describing an animation about to run.
public static AnimationManifest Create(
animation
)

Matches

#
Gets whether this manifest describes the same images the given animation would write now.
public bool Matches(
animation
)

Read

#
Read the manifest in a folder, if there is one.
public static AnimationManifest Read(
folder
)
The manifest, or null if the folder has none or it cannot be read.

Record

#
Record the outcome of a run on this manifest, so the next one can tell a finished animation from an interrupted one.
public void Record()

Write

#
Write this manifest into a folder, replacing any manifest already there. Failure to write a manifest is not fatal; it only costs the ability to resume.
public bool Write(
folder,
Folder to write into.
template = null
File name template of the images in this folder, shown to whoever opens the file. Optional.
)