Log inGet started
Package

CanonicalExport.module

Newest version

README.md

CanonicalExport

Writes animation assets in the engine's native AnimAsset bincode v1 format, inside Zero, with no external exporter in the loop. rig() builds the SOMACanonical rig asset from canonical-full-rig.json, including its bone roles and inverse-bind matrices, and returns it with that input; encode(name, clip, names) turns a 30 fps clip of 2 to 300 poses into the bytes the type expects. save(name, clip, transient) expands a reduced-skeleton clip against the canonical rig, encodes it, creates MB_<name>.animation under MotionBricksClips/animations with its provenance.json, and with transient = true writes the bytes under tmp/motionbricks instead so an iteration can be looked at without publishing it. join(segments) splices generated segments, dropping the shared frame at each splice and rejecting a join whose overlap is not continuous in position and rotation, and saveJoined(name, segments) saves the result.

Used by: MotionBricksContinuation.MotionRootExport, for encode and save.