The glb.py module#

Summary#

convert_usd_to_glb

Convert a USD stage to a self-contained GLB binary.

Description#

GLB conversion entrypoint for USD web viewer export.

Module detail#

glb.convert_usd_to_glb(path: pathlib.Path) bytes#

Convert a USD stage to a self-contained GLB binary.

Parameters:
pathPath

Path to the USD file to convert.

Returns:
bytes

The GLB binary data.