
Product
Introducing Socket Fix for Safe, Automated Dependency Upgrades
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
This package allows you to load, save and manipulate GLTF 2.0 files in Python 3.x.
gltfutils is available on pypi, allowing it to be installed by running pip install gltfutils
.
Clone the repository, and from the repository's root directory run python setup.py install
Clone the repository, and from the repository's root directory run python setup.py test
from gltfutils import GLTF2
with open(GLTF_FILENAME, 'r') as f:
gltf = gltfutils.GLTF2.load(f)
from gltfutils import GLB
with open(GLB_FILENAME, 'r') as f:
gltf = gltfutils.GLB.load(f)
Access is done through dotted notation. Assuming an existing gltf file is loaded with the name gltf
:
print(gltf.asset
for node in gltf.nodes:
print(node.mesh)
NOTE: Optional attributes are always present and in most cases default to None (in the case of indices, for example), or an empty list, when the variable is a list (i.e. a node's children).
Assuming an existing gltf file is loaded with the name gltf
:
import json
with f as open(OUTPUT_FILENAME, 'w'):
json.dump(f, gltfutils.to_json(gltf))
For 1.0:
For the future:
FAQs
A set of python libraries for reading, manipulating, and saving gltf files.
We found that gltfutils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.
Product
We’re excited to announce a powerful new capability in Socket: historical data and enhanced analytics.