This script must be placed in the root folder of the USD tools library provided by Apple on their AR Quick Look Gallery page.
Requires assimp
to be installed.
Command format: ./stl_to_usdz.sh input_file.stl output_file.usdz
For now, this just inserts the necessary transformations at a hardcoded line number in the USD markup, so compatibility with future versions of usdzconvert is not guaranteed.
Getting this error here with this code:
It does export a
usdz
file, but the file doesn't load.Helpful script tho :) usdz tools download here.