Skip to content

GeoLibra/gltf-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

gltf-tools

from pygltflib import GLTF2,BufferFormat
from pygltflib.utils import ImageFormat
filename = "C.glb"
gltf = GLTF2().load(filename)
# gltf.images[0].name = gltf.images[0].uri  # will save the data uri to this file (regardless of data format)
gltf.convert_images(ImageFormat.FILE, path='img',override=True)
for item in gltf.images:
    bufferView =  item.bufferView
    gltf.remove_bufferView(bufferView)
for item in gltf.images:
    del item.bufferView
gltf.convert_buffers(BufferFormat.BINARYBLOB,override=True)
gltf.save("img/c.glb")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages