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.tsindex 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.glbindex 1310cfe..89cfe9c 100644Binary files a/static/animations/bird-animations.glb and b/static/animations/bird-animations.glb differdiff --git a/static/blender/bird.blend b/static/blender/bird.blendindex 171c646..c3c9ecf 100644Binary files a/static/blender/bird.blend and b/static/blender/bird.blend differ