Import a 3D Model and automatically assign and export animations
TypeScript
Use NLA in blender to remove extra T-pose. Alphabetize animations listing
Scott Petrovicc4e0290159b2
diff --git a/src/lib/processes/StepAnimationsListing.ts b/src/lib/processes/StepAnimationsListing.tsindex f46b93e..13369d8 100644--- a/src/lib/processes/StepAnimationsListing.ts+++ b/src/lib/processes/StepAnimationsListing.ts@@ -179,6 +179,13 @@ export class StepAnimationsListing extends EventTarget {}private onAllAnimationsLoaded (): void {+ // sort all animation names alphabetically+ this.animation_clips_loaded.sort((a: AnimationClip, b: AnimationClip) => {+ if (a.name < b.name) { return -1 }+ if (a.name > b.name) { return 1 }+ return 0+ })+console.log('all animations loaded:', this.animation_clips_loaded)// create user interface with all available animation clipsdiff --git a/static/animations/human-addon-animations.glb b/static/animations/human-addon-animations.glbindex 4434000..b8d99e0 100644Binary files a/static/animations/human-addon-animations.glb and b/static/animations/human-addon-animations.glb differdiff --git a/static/blender/human.blend b/static/blender/human.blendindex 372a3f3..3942373 100644Binary files a/static/blender/human.blend and b/static/blender/human.blend differ