1
$\begingroup$

I want to import a model of bench in .glb format using python inside blender.

What function am I supposed to use?

$\endgroup$
0
$\begingroup$

GLB is the binary form of the glTF format, and the importer (2.80 and higher, or 2.79 with manual install) can handle GLB filenames directly.

bpy.ops.import_scene.gltf(filepath='path/to/myFile.glb')
$\endgroup$
  • $\begingroup$ Thank you so much.This worked for me. $\endgroup$ – PATEL VIVASVAN Jun 12 '19 at 9:22
0
$\begingroup$

Blender uses the gltf naming, the import operator is bpy.ops.import_scene.gltf()

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.