Skip to content

Instantly share code, notes, and snippets.

@donmccurdy
Created January 31, 2023 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donmccurdy/93de2a0ef347417a281e44a59596c8b5 to your computer and use it in GitHub Desktop.
Save donmccurdy/93de2a0ef347417a281e44a59596c8b5 to your computer and use it in GitHub Desktop.
Example script for batch CLI processing with glTF Transform.
#!/bin/bash
FILES="./path/to/models/*.glb"
for file in $FILES; do
echo "Compressing $file..."
gltf-transform draco "${file%.glb}.glb" "${file%.glb}-draco.glb"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment