1

is there a simple TERMINAL ONLY way to convert an .obj file .gltf file using blender,


with blender GUI i can do it like,

file > import > .obj > [~/path/to/input.obj] > import .obj

then:
file > export > .gltf > [~/path/to/output.gltf] > import .gltf


maybe for ex:-

blender -i ~/path/to/input.obj -e ~/path/to/output.gltf 

like [-i for import & -e for export]


is there a way to do this using a bash terminal, like ffmpeg or convert [ImageMagick] do file format conversion

ANDuser
  • 11
  • 1
  • https://blender.stackexchange.com/questions/192420/how-to-import-obj-and-convert-and-export-as-fbx-from-command-line-in-python https://blender.stackexchange.com/questions/56009/how-can-i-convert-a-file-with-the-command-line – Duarte Farrajota Ramos Apr 27 '22 at 09:21
  • UX3D offers a conversion script, calling Blender in headless mode from the command line: https://github.com/ux3d/2gltf2 – emackey Apr 27 '22 at 14:12

0 Answers0