Skip to content

Import a 3D Model and automatically assign and export animations

TypeScript

Allow hip position for bird model. Add a couple bird animations

Scott Petrovic7dd7505e7ddd
diff --git a/src/lib/processes/StepAnimationsListing.ts b/src/lib/processes/StepAnimationsListing.ts
index 13369d8..02ab8a1 100644
--- a/src/lib/processes/StepAnimationsListing.ts
+++ b/src/lib/processes/StepAnimationsListing.ts
@@ -201,8 +201,10 @@ export class StepAnimationsListing extends EventTarget {
let rotation_tracks: KeyframeTrack[] = []
+ //const name: String = "".toLowerCase()
+
if (preserve_root_position) {
- rotation_tracks = animation_clip.tracks.filter((x: KeyframeTrack) => x.name.includes('quaternion') || x.name.includes('hips.position'))
+ rotation_tracks = animation_clip.tracks.filter((x: KeyframeTrack) => x.name.includes('quaternion') || x.name.toLowerCase().includes('hips.position'))
} else {
rotation_tracks = animation_clip.tracks.filter((x: KeyframeTrack) => x.name.includes('quaternion') || x.name.includes('hips.position'))
}
diff --git a/static/animations/bird-animations.glb b/static/animations/bird-animations.glb
index 1310cfe..89cfe9c 100644
Binary files a/static/animations/bird-animations.glb and b/static/animations/bird-animations.glb differ
diff --git a/static/blender/bird.blend b/static/blender/bird.blend
index 171c646..c3c9ecf 100644
Binary files a/static/blender/bird.blend and b/static/blender/bird.blend differ