Scripting API
Scripting API
ClipBones
Class in Abyss.Core.Scenes, from Abyss.Core.
Which bone of a skeleton each bone a clip moves lands on, as the engine fits a clip to the skeleton of the animator playing it: by its path where the skeleton has it, else the bone whose path is the clip's with nodes at its top added or taken away, else the one bone of its name where the clip, too, moves only one of that name. So a clip of a file whose lone top node was folded into the model, Dino_Center/Spine1, lands on Root/Dino_Center/Spine1 of a model of the same skeleton whose top was kept.
public static class ClipBonesRemarks
The engine's own is abyss_core::model::animation::fit; the two say the same.
Methods
Fit
public static int[] Fit(IReadOnlyList<IReadOnlyList<string>> targets, IReadOnlyList<IReadOnlyList<string>> skeleton)Where each of targets, a clip's bones by their paths, lands in skeleton, a model's nodes by theirs: its place there, or ClipBones.Nowhere — no bone of its name, or none decided, two of its name whose paths are not its own. The model's root, a path of no names, lands on a root of none if the skeleton lists one, and nowhere else.
Parameters
targetsskeleton
Constants
Nowhere
public const int Nowhere = -1What Fit says of a bone that lands nowhere.
