Created
July 31, 2023 13:39
-
-
Save netgfx/6195da08cc46a23951749e0ab53633b3 to your computer and use it in GitHub Desktop.
Massively convert FBX files to GTLF on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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