Skip to content

File Module

DESKTOP-6PITPE2\amade edited this page Oct 12, 2022 · 8 revisions

This module is used to abstract creating a bucket and exporting it to disk.

create_bucket

Create a new bucket.

Argument Type Description
filePath str Directory to which the file will be exported to, without the name of the file, to use relative pathing start the path with //
fileName str Name of the file which will be exported, without the extension (.gltf / .glb)
binPath str Relative path from the main file where the binary files will be exported to, defaults to /bin
fileType str File type, available options:
1. FILE_TYPE_GLTF
2. FILE_TYPE_GLB
3. FILE_TYPE_GLTF_EMBEDDED
Defaults to FILE_TYPE_GLB

Returns: Bucket

dump_bucket

Export the bucket to file. This will delete the bucket.

Argument Type Description
bucket Bucket The bucket to be exported.