Skip to content

Instantly share code, notes, and snippets.

@netgfx
Created July 31, 2023 13:39
Show Gist options
  • Save netgfx/6195da08cc46a23951749e0ab53633b3 to your computer and use it in GitHub Desktop.
Save netgfx/6195da08cc46a23951749e0ab53633b3 to your computer and use it in GitHub Desktop.
Massively convert FBX files to GTLF on Windows
#!/bin/bash
input_folder="C:\Users\..."
output_folder="C:\Users\..."
for file in "$input_folder"/*; do
if [[ -f "$file" ]]; then
filename=$(basename -- "$file")
extension="${filename##*.}"
filename="${filename%.*}"
output_file="$output_folder/$filename.glb"
C:/SDK/FBX2glTF-windows-x64.exe --binary --verbose --input "$file" --output "$output_file"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment