public sealed class ConstraintTemplateContentA named, versioned bundle of tags with relative timings.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
A seated interaction is twenty constraints and nobody authors twenty constraints repeatedly. This is the thing that makes the authoring cost bearable, and Revision is what makes it maintainable: a template that improves can be pushed back across every clip that used it, with a diff first.
⚠ Timings are relative to the template's own span, in [0, 1]. A template applied over the last three seconds of a ten-second clip has to place its tags inside those three seconds, and a template that stored absolute phases would only ever fit the clip it was captured from.
Fields and properties (8)
public const int CurrentThe version this build writes.
public const string ExtensionThe file extension.
public int VersionWhich version of the format wrote it.
public string NameWhat the template is called. Written into every tag it produces.
public int RevisionThe template's own version, bumped whenever it is re-saved.
public string MeaningWhat it is for, in a sentence an author picking from a list can read.
public List<ConstraintTagRecord> TagsThe tags, with Begin and End relative to the template's own span.
public Dictionary<string, string> ExtensionsMarkup this build did not interpret.
Methods (4)
public IReadOnlyList<ConstraintTagRecord> Instantiate(float begin = 0, float end = 1)The tags this template would place over a span of a clip.
public TemplateDiff Compare(IReadOnlyList<ConstraintTagRecord> existing, float begin = 0, float end = 1)What re-applying this template to a clip's tags would do.
public static ConstraintTagRecord Copy(ConstraintTagRecord tag)A field-for-field copy, so a template's own tags are never handed out.
public static ConstraintFrameRecord Copy(ConstraintFrameRecord frame)A field-for-field copy of a frame.
Used by (7)
- AuthoringTestsVixen.Animation.Tests
- TypeRegistrationVixen.Animation
- Vixen_Animation_Constraints_ConstraintTemplateContentSerializerVixen.Animation
- AnimationClipDocumentVixen.Editor.AssetEditors
- AuthoringTestsVixen.Editor.AssetEditors.Tests
- ConstraintAuthoringImporterTestsVixen.Editor.Assets.Tests
- ConstraintTemplateImporterVixen.Editor.Assets