4
$\begingroup$

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

What function am I supposed to use?

$\endgroup$

2 Answers 2

5
$\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$
1
  • $\begingroup$ Thank you so much.This worked for me. $\endgroup$ Jun 12, 2019 at 9:22
1
$\begingroup$

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

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .