Scripting API
Scripting API
ModelClip
Record in Abyss.Core.Scenes, from Abyss.Core.
One clip of a model, as its import lists it.
public record ModelClipConstructors
ModelClip
public ModelClip(string Name, float Duration, bool Loops, int Channels, int Keys)One clip of a model, as its import lists it.
Parameters
Name: What the file calls it, orAnimation0: what a path names it by,models/fox.gltf#Walk.Duration: How long it is, in seconds.Loops: Whether it loops when nothing says otherwise, as its Loop setting said when it was imported.Channels: How many channels it has: a node's translation, rotation or scale each.Keys: How many keys its longest channel has.
Properties
Name
public string Name { get; init; }What the file calls it, or Animation0: what a path names it by, models/fox.gltf#Walk.
Duration
public float Duration { get; init; }How long it is, in seconds.
Loops
public bool Loops { get; init; }Whether it loops when nothing says otherwise, as its Loop setting said when it was imported.
Channels
public int Channels { get; init; }How many channels it has: a node's translation, rotation or scale each.
Keys
public int Keys { get; init; }How many keys its longest channel has.
Targets
public IReadOnlyList<IReadOnlyList<string>> Targets { get; init; }What its channels move, each by its path of names below the model's root, once each: Dino_Center/Spine1 as ["Dino_Center", "Spine1"]. None from a model imported before they were written down.
